改进 登录
This commit is contained in:
parent
e9e1e3e0ca
commit
c550a5370e
@ -38,9 +38,15 @@ function back() {
|
||||
});
|
||||
} else {
|
||||
console.log("跳转:" + last_url);
|
||||
router.push({
|
||||
path: last_url,
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
router.push({
|
||||
path: last_url ? last_url : "/",
|
||||
});
|
||||
}, 100)
|
||||
|
||||
// 不能这样做,因为会丢失登录状态。
|
||||
// window.location.href = window.location.origin + last_url
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user