From c04172de509fbfe8a6ec87efcb2332933ccee898 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 23 Jan 2024 19:53:11 +0800
Subject: [PATCH] 登录逻辑异常
---
src/store/modules/user.js | 9 +++++++--
src/page/login/userlogin.vue | 9 ++-------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/page/login/userlogin.vue b/src/page/login/userlogin.vue
index 4601aed..1385a6b 100644
--- a/src/page/login/userlogin.vue
+++ b/src/page/login/userlogin.vue
@@ -224,13 +224,8 @@
}
}
- if (JSON.stringify(res) == '{}') {
- this.$router.push({ path: this.tagWel.value })
- } else {
- this.$router.$avueRouter.formatRoutes(res.menuData, true)
-
- this.$router.push({ path: res.fistMenu.path })
- }
+ this.$router.$avueRouter.formatRoutes(res.menuData, true)
+ this.$router.push({ path: res.fistMenu.path })
loading.close()
}).catch(() => {
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index b71edea..7fb5f2f 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -114,7 +114,12 @@
commit("SET_HOMEFIRSTPAGE", "/wel");
- resolve({});
+ resolve({
+ fistMenu: {
+ path: "/wel",
+ },
+ menuData,
+ });
} else {
setStore({ name: "showMenu", content: false });
@@ -135,7 +140,7 @@
resolve({ fistMenu, menuData });
}
- commit("DEL_ALL_TAG");
+ // commit("DEL_ALL_TAG");
});
}
})
--
Gitblit v1.9.3