Explorar el Código

feat(login): 隐藏优惠券与代金券菜单并保存用户业务板块信息

- 将 authMenuList.json 中的优惠券管理菜单设置为隐藏
- 将 authMenuList.json 中的代金券管理菜单设置为隐藏
- 在登录成功后保存用户的业务板块信息到本地存储
congxuesong hace 1 mes
padre
commit
8a3ae45e1e
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. 2 2
      src/assets/json/authMenuList.json
  2. 3 0
      src/views/login/index.vue

+ 2 - 2
src/assets/json/authMenuList.json

@@ -83,7 +83,7 @@
         "icon": "Ticket",
         "title": "优惠券管理",
         "isLink": "",
-        "isHide": false,
+        "isHide": true,
         "isFull": false,
         "isAffix": false,
         "isKeepAlive": false
@@ -190,7 +190,7 @@
         "icon": "Money",
         "title": "代金券管理",
         "isLink": "",
-        "isHide": false,
+        "isHide": true,
         "isFull": false,
         "isAffix": false,
         "isKeepAlive": false

+ 3 - 0
src/views/login/index.vue

@@ -859,6 +859,9 @@ const handleLogin = async () => {
         if (localGet("geeker-user").userInfo.phone) {
           localSet("iphone", localGet("geeker-user").userInfo.phone);
         }
+        if (localGet("geeker-user").userInfo.businessSection) {
+          localSet("businessSection", localGet("geeker-user").userInfo.businessSection);
+        }
         await initDynamicRouter();
 
         // 3.清空 tabs、keepAlive 数据