Skip to content

Commit c35f0e7

Browse files
committed
perf: 简化 router.push 参数
1 parent ab306c4 commit c35f0e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function handleLogin() {
5454
loading.value = true
5555
loginApi(loginFormData).then(({ data }) => {
5656
userStore.setToken(data.token)
57-
router.push({ path: "/" })
57+
router.push("/")
5858
}).catch(() => {
5959
createCode()
6060
loginFormData.password = ""

0 commit comments

Comments
 (0)