|
|
@@ -6,12 +6,12 @@ import {
|
|
|
import website from '@/config/website'
|
|
|
|
|
|
const common = {
|
|
|
-
|
|
|
state: {
|
|
|
language: getStore({name: 'language'}) || 'zh',
|
|
|
isCollapse: false,
|
|
|
isFullScren: false,
|
|
|
isMenu: true,
|
|
|
+ menuIndex:0,
|
|
|
isShade: false,
|
|
|
screen: -1,
|
|
|
isLock: getStore({name: 'isLock'}) || false,
|
|
|
@@ -49,6 +49,9 @@ const common = {
|
|
|
SET_IS_MENU: (state, menu) => {
|
|
|
state.isMenu = menu;
|
|
|
},
|
|
|
+ SET_MENU_INDEX:(state,index)=>{
|
|
|
+ state.menuIndex=index
|
|
|
+ },
|
|
|
SET_LOCK: (state) => {
|
|
|
state.isLock = true;
|
|
|
setStore({
|