Compare commits
No commits in common. 'main' and 'branch__lmm' have entirely different histories.
main
...
branch__lm
File diff suppressed because it is too large
Load Diff
@ -1,3 +1 @@
|
||||
// 导出一个函数,该函数接收一个文件名作为参数
|
||||
// 返回一个动态导入模块的函数
|
||||
module.exports = file => () => import('@/views/' + file + '.vue')
|
||||
|
@ -1,20 +1,12 @@
|
||||
export default {
|
||||
// 启用 Vuex 模块的命名空间,避免命名冲突
|
||||
namespaced: true,
|
||||
|
||||
// state 存储模块的状态
|
||||
state: {
|
||||
// tags 用来存储标签数据的数组
|
||||
tags:[]
|
||||
},
|
||||
|
||||
// mutations 用来修改 state 中的状态
|
||||
mutations: {
|
||||
// 更新 tags 数组的内容
|
||||
updateTags (state, tags) {
|
||||
// 将传入的 tags 更新到 state 中
|
||||
state.tags = tags;
|
||||
state.tags = tags
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in new issue