|
@@ -5,7 +5,8 @@ export default {
|
|
commonFunctions: [], // 常用功能模块
|
|
commonFunctions: [], // 常用功能模块
|
|
tabsUseableFunctions: [], // tab菜单下可用功能模块
|
|
tabsUseableFunctions: [], // tab菜单下可用功能模块
|
|
tabsAllFunctions: [], // tab菜单下所有功能模块
|
|
tabsAllFunctions: [], // tab菜单下所有功能模块
|
|
- boxFeatureType: localStorage.getItem('box_feature_type') || 'all' // 百宝箱功能类型
|
|
|
|
|
|
+ boxFeatureType: localStorage.getItem('box_feature_type') || 'all', // 百宝箱功能类型
|
|
|
|
+ commonMaxNum: 8 //常用功能限制数量
|
|
}),
|
|
}),
|
|
mutations: {
|
|
mutations: {
|
|
changeCommonFunction (state, list = []) {
|
|
changeCommonFunction (state, list = []) {
|
|
@@ -20,6 +21,9 @@ export default {
|
|
changeBoxFeatureType (state, value) {
|
|
changeBoxFeatureType (state, value) {
|
|
state.boxFeatureType = value
|
|
state.boxFeatureType = value
|
|
localStorage.setItem('box_feature_type', value)
|
|
localStorage.setItem('box_feature_type', value)
|
|
|
|
+ },
|
|
|
|
+ changeCommonMaxNum (state, value) {
|
|
|
|
+ state.commonMaxNum = value
|
|
}
|
|
}
|
|
},
|
|
},
|
|
actions: {
|
|
actions: {
|
|
@@ -34,6 +38,10 @@ export default {
|
|
},
|
|
},
|
|
setBoxFeatureType ({ commit }, value) {
|
|
setBoxFeatureType ({ commit }, value) {
|
|
commit('changeBoxFeatureType', value)
|
|
commit('changeBoxFeatureType', value)
|
|
|
|
+ },
|
|
|
|
+ // 设置常用功能最大限制数量
|
|
|
|
+ setCommonMaxNum ({ commit }, value) {
|
|
|
|
+ commit('changeCommonMaxNum', value)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getters: {
|
|
getters: {
|
|
@@ -51,6 +59,10 @@ export default {
|
|
},
|
|
},
|
|
boxFeatureType (state) {
|
|
boxFeatureType (state) {
|
|
return state.boxFeatureType || 'all'
|
|
return state.boxFeatureType || 'all'
|
|
|
|
+ },
|
|
|
|
+ // 常用功能最大限制数量
|
|
|
|
+ commonMaxNum (state) {
|
|
|
|
+ return state.commonMaxNum || 8
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|