From d2bc6e096f0806b78ea92d4b90a21d3627d406c7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 08 三月 2024 18:28:42 +0800
Subject: [PATCH] mrshi

---
 company/src/router/index.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/company/src/router/index.js b/company/src/router/index.js
index 56a7f96..cf320c3 100644
--- a/company/src/router/index.js
+++ b/company/src/router/index.js
@@ -3,6 +3,7 @@
 import AppLayout from '@/layouts/AppLayout'
 import { getUserInfo } from '@/api/system/common'
 const Login = () => import('@/views/login')
+
 const ErrorNoPermissions = () => import('@/views/no-permissions')
 const Error404 = () => import('@/views/not-found')
 
@@ -18,6 +19,7 @@
       path: '/login',
       component: Login
     },
+
     // 鏃犳潈闄�
     {
       name: 'no-permissions',
@@ -52,7 +54,6 @@
   }
   // 楠岃瘉鐢ㄦ埛鏄惁鐧诲綍
   const userInfo = router.app.$options.store.state.userInfo
-  // console.log(userInfo)
   if (userInfo != null) {
     // 濡傛灉鐢ㄦ埛涓嶅瓨鍦ㄦ潈闄�
     if (userInfo.permissions.length === 0) {
@@ -67,7 +68,6 @@
     next()
     return
   }
-  // debugger
   getUserInfo()
     .then(userInfo => {
       // 濡傛灉鐢ㄦ埛涓嶅瓨鍦ㄦ潈闄�

--
Gitblit v1.9.3