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:
parent
ab306c4e2c
commit
c35f0e7735
@ -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 = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user