Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

perf: 简化 router.push 参数

This commit is contained in:
pany 2024-12-03 19:46:49 +08:00
parent ab306c4e2c
commit c35f0e7735

View File

@ -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 = ""