mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
perf: 优化在登陆页点击登录按钮时的内部逻辑 (#867)
This commit is contained in:
parent
53071e5d7a
commit
f728629437
@ -77,7 +77,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
// 获取后端路由
|
// 获取后端路由
|
||||||
initRouter().then(() => {
|
return initRouter().then(() => {
|
||||||
router.push(getTopMenu(true).path);
|
router.push(getTopMenu(true).path);
|
||||||
message("登录成功", { type: "success" });
|
message("登录成功", { type: "success" });
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user