diff --git a/src/pages/fwgl.vue b/src/pages/fwgl.vue index bd9d0434598a7a45f0b8bb2e5e8032f12a93a5a6..f3ae8e8eb5d2cd6f7fa29e936d88936ac5dc61be 100644 --- a/src/pages/fwgl.vue +++ b/src/pages/fwgl.vue @@ -14,6 +14,7 @@ diff --git a/src/store/index.js b/src/store/index.js index 1928e04d20f75c0821dd9c38ed7bef90616a5569..48e245e9c34be6c7f7450cdfb70bc7bb57143f00 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1,15 +1,18 @@ -import Vuex from 'vuex' -import Vue from 'vue' +import Vuex from "vuex"; +import Vue from "vue"; Vue.use(Vuex); - const store = new Vuex.Store({ state: { - role: 1,//0:普通用户,1:组织管理员,2:超级管理员 + role: 1, //0:普通用户,1:组织管理员,2:超级管理员 serviceShopMenu: 0, // 服务超市侧边栏 + fwglNav: [ + ["注册发布的服务", "申请的服务", "审批的服务", "云资源服务"], //普通用户 + ["组织服务管理", "服务审批管理", "云资源管理"], //组织管理员 + ["平台服务管理", "服务审批管理", "云资源管理"], //超级管理员 + ], // 服务管理列表,onlyRead }, - modules: { - }, + modules: {}, mutations: { rolefun(state, newValue) { state.role = newValue; @@ -20,4 +23,4 @@ const store = new Vuex.Store({ }, }); -export default store \ No newline at end of file +export default store;