Compare commits
4 Commits
branch__lm
...
main
Author | SHA1 | Date |
---|---|---|
|
c086ce336f | 8 months ago |
|
327565db82 | 8 months ago |
|
5e703caeae | 8 months ago |
|
f39e625538 | 8 months ago |
File diff suppressed because it is too large
Load Diff
@ -1 +1,3 @@
|
||||
// 导出一个函数,该函数接收一个文件名作为参数
|
||||
// 返回一个动态导入模块的函数
|
||||
module.exports = file => () => import('@/views/' + file + '.vue')
|
||||
|
@ -1,12 +1,20 @@
|
||||
export default {
|
||||
// 启用 Vuex 模块的命名空间,避免命名冲突
|
||||
namespaced: true,
|
||||
|
||||
// state 存储模块的状态
|
||||
state: {
|
||||
// tags 用来存储标签数据的数组
|
||||
tags: []
|
||||
},
|
||||
|
||||
// mutations 用来修改 state 中的状态
|
||||
mutations: {
|
||||
// 更新 tags 数组的内容
|
||||
updateTags (state, tags) {
|
||||
state.tags = tags
|
||||
}
|
||||
// 将传入的 tags 更新到 state 中
|
||||
state.tags = tags;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -1,11 +1,17 @@
|
||||
<template>
|
||||
<!-- 模块容器 div -->
|
||||
<div class="mod-home">
|
||||
<!-- 欢迎标题 -->
|
||||
<h3>欢迎使用微信管理系统</h3>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
/* 样式部分 */
|
||||
.mod-home {
|
||||
/* 设置行高,增加文本的可读性 */
|
||||
line-height: 2.5;
|
||||
/* 使文本水平居中对齐 */
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in new issue