From ebdadd285cee7291cbdb2d2910f9f5ae15b17a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Fri, 8 Aug 2025 11:25:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/permission.js b/src/permission.js index 2215e66..1b995fe 100644 --- a/src/permission.js +++ b/src/permission.js @@ -17,6 +17,8 @@ router.beforeEach(async (to, from, next) => { if (isEmpty(history.state.current)) { assign(history.state, { current: from.fullPath }) } + console.log(to) + if (getToken()) { // 判断用户是否处于登录状态 if (to.path === '/login') {