From c35f0e77357b634f3afe67456456643634e1fc4c Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Tue, 3 Dec 2024 19:46:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=AE=80=E5=8C=96=20router.push=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 8982a43f..6ffd704f 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -54,7 +54,7 @@ function handleLogin() { loading.value = true loginApi(loginFormData).then(({ data }) => { userStore.setToken(data.token) - router.push({ path: "/" }) + router.push("/") }).catch(() => { createCode() loginFormData.password = ""