From ec7118b37667ce0adeac65fd8c0a70225b6b55bc Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 5 Mar 2024 20:21:05 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#82=20=E5=90=8E=E5=8F=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=88=90=E5=8A=9F=E4=BD=86=E5=89=8D=E7=AB=AF=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/login.vue b/src/pages/login.vue index d57fbbf7..2a4498be 100644 --- a/src/pages/login.vue +++ b/src/pages/login.vue @@ -78,7 +78,7 @@ function login() { store.dispatch('auth/updateAvatar', avatar) // 跳转到首页或回原始页面 - router.push(store.state.auth.originalPath) + router.push(store.state.auth.originalPath ?? '/') }) .catch((error: any) => { // 登录失败,显示错误提示