Parcourir la source

供应商附件下载——加入白名单

002390 il y a 1 an
Parent
commit
47bb7a362a
2 fichiers modifiés avec 10 ajouts et 5 suppressions
  1. 5 5
      src/permission.js
  2. 5 0
      src/router/index.js

+ 5 - 5
src/permission.js

@@ -8,7 +8,7 @@ import { isRelogin } from '@/utils/request'
 
 NProgress.configure({ showSpinner: false })
 
-const whiteList = ['/login', '/register', '/test01', '/ehrentrance','/business/ehr/ehrpm-entrance','/canteenAddFood', '/canteenAddMenu', '/menuScreen', '/foodScreen','/business/wms/historical-route']
+const whiteList = ['/login', '/register', '/test01', '/ehrentrance', '/business/ehr/ehrpm-entrance', '/canteenAddFood', '/canteenAddMenu', '/menuScreen', '/foodScreen', '/business/wms/historical-route', '/business/SupAtttachment']
 
 router.beforeEach((to, from, next) => {
   NProgress.start()
@@ -30,11 +30,11 @@ router.beforeEach((to, from, next) => {
             next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
           })
         }).catch(err => {
-            store.dispatch('LogOut').then(() => {
-              Message.error(err)
-              next({ path: '/' })
-            })
+          store.dispatch('LogOut').then(() => {
+            Message.error(err)
+            next({ path: '/' })
           })
+        })
       } else {
         next()
       }

+ 5 - 0
src/router/index.js

@@ -67,6 +67,11 @@ export const constantRoutes = [
     hidden: true
   },
   {
+    path: '/business/SupAtttachment',
+    component: () => import('@/views/purchase/SupAtttachment/index'),
+    hidden: true
+  },
+  {
     path: '/canteenAddFood',
     component: () => import('@/views/canteen/addFood'),
     hidden: true