From fc3bcbf2253ffd8c158df1a492440fa32274516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Fri, 8 Sep 2023 18:32:27 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=E4=BF=AE=E6=94=B9=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=AE=BF=E9=97=AE=E9=9C=80=E8=A6=81=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E7=9A=84=E8=B5=84=E6=BA=90,=E5=9C=A8=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E5=90=8E=E9=87=8D=E5=AE=9A=E5=90=91=E4=B8=A2=E5=A4=B1=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=8F=82=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/permission.js b/src/permission.js index 730425d..5cd7086 100644 --- a/src/permission.js +++ b/src/permission.js @@ -56,7 +56,7 @@ router.beforeEach((to, from, next) => { next() } else { console.log('to login') - next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页 + next(`/login?redirect=${encodeURIComponent(to.fullPath)}`) // 否则全部重定向到登录页 NProgress.done() } }