فهرست منبع

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

otis 1 سال پیش
والد
کامیت
f728629437
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/views/login/index.vue

+ 1 - 1
src/views/login/index.vue

@@ -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" });
             });