From 1995e710dcf70e635c4edaa8173f8b66cd67d499 Mon Sep 17 00:00:00 2001
From: 黄何裕 <1053952480@qq.com>
Date: 星期二, 30 七月 2024 14:05:06 +0800
Subject: [PATCH] 样式优化

---
 src/permission.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/permission.js b/src/permission.js
index c568979..45c6285 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -16,6 +16,12 @@
     to.meta.title && store.dispatch('settings/setTitle', to.meta.title)
     /* has token*/
     if (to.path === '/login') {
+      // 鏂板鍒ゆ柇鈥斺�斿綋鍓嶄綅缃湭鐧诲綍椤甸潰鏃讹細濡傛灉firstLogin鍊间负0
+      if(localStorage.getItem("firstLogin") == 0) {
+        // 鍘绘帀token
+        setToken("")
+      }
+      // 涓嶄负true鏃朵笉鍙�
       next({ path: '/' })
       NProgress.done()
     } else if (whiteList.indexOf(to.path) !== -1) {

--
Gitblit v1.8.0