Bläddra i källkod

loginAdmin白名单恢复

songxy 1 år sedan
förälder
incheckning
57b06ddb42

+ 5 - 6
client/src/permission.ts

@@ -15,6 +15,7 @@ const { loadStart, loadDone } = usePageLoading()
 // 路由不重定向白名单
 const whiteList = [
   '/login',
+  '/loginAdmin',
   '/social-login',
   '/auth-redirect',
   '/bind',
@@ -56,12 +57,10 @@ router.beforeEach(async (to, from, next) => {
       }
     }
   } else {
-    console.log('to---------------')
-    console.log(to)
-    if (to.path.indexOf('loginAdmin') !== -1 && to.query.debugger === '1') {
-      next()
-      return
-    }
+    // if (to.path.indexOf('loginAdmin') !== -1 && to.query.debugger === '1') {
+    //   next()
+    //   return
+    // }
     if (whiteList.indexOf(to.path) !== -1) {
       next()
     } else {

+ 1 - 1
client/src/views/OaSystem/officeCenter/mainOfficeCenter/index.vue

@@ -46,7 +46,7 @@ import {
   getHandlerCaseCenterCount,
   getFlowTemplateTreeDataByUser,
   getFlowTemplateTree
-} from '@/api/workflow'
+} from '@/api/oa/workflow'
 import { tabConfig, TabColumns } from './common'
 
 const sendData = {