From 817fc25bb821964f1a4ce1648abfcdd332a26c72 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 26 Jan 2021 17:50:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=20sso=20=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=B7=B3=E8=BD=AC=E4=B9=8B=E5=90=8E=E5=8F=88=E6=89=A7?= =?UTF-8?q?=E8=A1=8Csignout=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/business/components/common/router/router.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/common/router/router.js b/frontend/src/business/components/common/router/router.js index f5821015c4..a7dbdbce6f 100644 --- a/frontend/src/business/components/common/router/router.js +++ b/frontend/src/business/components/common/router/router.js @@ -1,7 +1,6 @@ import Vue from "vue"; import VueRouter from 'vue-router' import RouterSidebar from "./RouterSidebar"; -import axios from "axios"; import Setting from "@/business/components/settings/router"; import API from "@/business/components/api/router"; import Performance from "@/business/components/performance/router"; @@ -31,8 +30,8 @@ router.beforeEach((to, from, next) => { //解决localStorage清空,cookie没失效导致的卡死问题 if (!localStorage.getItem('Admin-Token')) { - axios.get("/signout"); - console.log("signout"); + // axios.get("/signout"); + // console.log("signout"); localStorage.setItem('Admin-Token', "{}"); window.location.href = "/login"; next();