style:修改左侧导航及头部导航栏,创建左侧导航相关页面

This commit is contained in:
李晓鸽
2022-10-08 10:20:21 +08:00
parent f416bb7da8
commit 8cb03598cc
31 changed files with 3277 additions and 310 deletions

View File

@@ -1,14 +1,24 @@
import { createStore } from 'vuex'
export default createStore({
state: {
},
getters: {
},
mutations: {
},
actions: {
},
modules: {
}
state: {
openpages: localStorage.getItem('openpages') ? JSON.parse(localStorage.getItem('openpages')) : [{
pagename: "学习路径",
href: "/learningpath",
active: true,
},]
},
getters: {
},
mutations: {
chengeOpenpages(state, list) {
// console.log('list', list)
state.openpages = list
}
},
actions: {
},
modules: {
}
})