|
@@ -27,6 +27,14 @@ export default new Vuex.Store({
|
|
|
state.includeTabs.push(tab.name)
|
|
|
}
|
|
|
},
|
|
|
+ addinclude: (state, tab) => {
|
|
|
+ var tb = tab.replace('/','');
|
|
|
+ state.includeTabs.forEach(function(item,index) {
|
|
|
+ if(item === tb){
|
|
|
+ state.includeTabs.splice(index,1)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
delTab: (state, tab) => {
|
|
|
state.tabList.forEach(function(item,index) {
|
|
|
if(item.path === tab){
|