From b2ef755893a694ea07b7ca2f46e4571bbc8e9cb9 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期日, 07 四月 2024 17:09:45 +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