From 177d64284a8d1ee07ce4a1de36c2180a7ed1fc6f Mon Sep 17 00:00:00 2001
From: zhouhao <787329763@qq.com>
Date: Thu, 04 Nov 2021 17:47:13 +0800
Subject: [PATCH] 修复代理端门店查询问题
---
src/store/index.js | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/store/index.js b/src/store/index.js
index 816c2fb..f8f15a0 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -206,7 +206,7 @@
});
},
// 根据不同的权限设置用户拥有的菜单
- async setUserMenu({ commit }, { vm, lastLoginMgrId, next }) {
+ setUserMenu({ commit }, { vm, lastLoginMgrId, next }) {
vm.$api.getPowerInfo(lastLoginMgrId).then(data => {
@@ -304,6 +304,14 @@
path: '/user/register'
});
}
+ if (orgType === 1) { // 代理角色新增门店管理功能
+ userPage.push({
+ powerId: 100004,
+ icon: 'iconshanghuguanli',
+ label: '门店管理',
+ path: '/mine/stores'
+ });
+ }
commit(SET_FOOTER_NAV, footernav);
commit(SET_USER_PAGE, userPage);
commit(SET_USER_INFO, data.body);
--
Gitblit v1.8.0