From eb7addc7dfbed8674e3623d1562471c6d5a97c47 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 23 一月 2024 09:27:17 +0800
Subject: [PATCH] Mr.Shi

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

diff --git a/company/src/router/index.js b/company/src/router/index.js
index a9d2ce8..56a7f96 100644
--- a/company/src/router/index.js
+++ b/company/src/router/index.js
@@ -52,6 +52,7 @@
   }
   // 楠岃瘉鐢ㄦ埛鏄惁鐧诲綍
   const userInfo = router.app.$options.store.state.userInfo
+  // console.log(userInfo)
   if (userInfo != null) {
     // 濡傛灉鐢ㄦ埛涓嶅瓨鍦ㄦ潈闄�
     if (userInfo.permissions.length === 0) {
@@ -66,6 +67,7 @@
     next()
     return
   }
+  // debugger
   getUserInfo()
     .then(userInfo => {
       // 濡傛灉鐢ㄦ埛涓嶅瓨鍦ㄦ潈闄�

--
Gitblit v1.9.3