Commit bd2a02e7 authored by wangxl's avatar wangxl

222

parent da4dcea1
...@@ -17,6 +17,11 @@ const mutations = { ...@@ -17,6 +17,11 @@ const mutations = {
}, },
setTabsArray: (state, payload) => { setTabsArray: (state, payload) => {
state.tabsArray = payload state.tabsArray = payload
if (!!state.tabsArray && state.tabsArray.length > 0) {
if (state.tabsArray[0].key != '0') {
state.tabsArray.unshift({ title: '首页', key: '0', code: 'home', keepAlive: 1, router: '/home', closable: false })
}
}
}, },
setSystemType: (state, payload) => { setSystemType: (state, payload) => {
state.systemType = payload state.systemType = payload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment