bzkf30 2 years ago
parent
commit
fc3b1471dd
3 changed files with 2870 additions and 2725 deletions
  1. 1 1
      src/router/index.ts
  2. 7 5
      src/utils/request.ts
  3. 2862 2719
      yarn.lock

+ 1 - 1
src/router/index.ts

@@ -33,7 +33,7 @@ const router = createRouter({
 
 let hasRoleData: any = [];
 if (user.value?.user_role_id_ext_now && String(user.value.user_role_id_ext_now) != '0') {
-  let { code, data } = await request({ url: "/txwx/user_role/detail", data: { tur_id: user.value?.user_role_id_ext_now } });
+  let { code, data } = await request({ url: "/txwx/user_role/detail", data: { tur_id: user.value?.user_role_id_ext_now, M5jxrcL: "" } });
   if (code == 1) {
     if (data.one_info.tur_role_menu) {
       hasRoleData = data.one_info.tur_role_menu.split(",");

+ 7 - 5
src/utils/request.ts

@@ -34,13 +34,15 @@ instance.interceptors.request.use(
           issubmit: (config.url?.endsWith('add') || config.url?.endsWith('edit')) ? '1' : undefined,
         },
         config.data)
-        if(href.includes('manage')) {
-            config.data.M5jxrcL = '76D5tE'
-        } else if(href.includes('jsd')|| href.includes('xsd')) {
-            config.data.M5jxrcL = 'DaKFNRE'
+      if (config.data.M5jxrcL == undefined) {
+        if (href.includes('manage')) {
+          config.data.M5jxrcL = '76D5tE'
+        } else if (href.includes('jsd') || href.includes('xsd')) {
+          config.data.M5jxrcL = 'DaKFNRE'
         } else {
-            config.data.M5jxrcL = ''
+          config.data.M5jxrcL = ''
         }
+      }
     }
     return config
   },

File diff suppressed because it is too large
+ 2862 - 2719
yarn.lock