From 2900682fdaab863f66f9d44ac0a27d8e071e2506 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Tue, 16 Nov 2021 17:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=B7=E6=B1=82=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E5=99=A8=E9=87=8C=20toLogin=20=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/index.js b/src/api/index.js index fd1c62eb..afb7309b 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -8,7 +8,7 @@ const toLogin = () => { router.push({ path: '/login', query: { - redirect: router.currentRoute.fullPath + redirect: router.currentRoute.value.path !== '/login' ? router.currentRoute.value.fullPath : undefined } }) }