perf: 优化在登陆页点击登录按钮时的内部逻辑 (#867)

This commit is contained in:
otis 2024-01-12 18:13:07 +08:00 committed by GitHub
parent 53071e5d7a
commit f728629437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ const onLogin = async (formEl: FormInstance | undefined) => {
.then(res => {
if (res.success) {
//
initRouter().then(() => {
return initRouter().then(() => {
router.push(getTopMenu(true).path);
message("登录成功", { type: "success" });
});