shuishen
2024-01-23 c04172de509fbfe8a6ec87efcb2332933ccee898
登录逻辑异常
2 files modified
18 ■■■■ changed files
src/page/login/userlogin.vue 9 ●●●● patch | view | raw | blame | history
src/store/modules/user.js 9 ●●●● patch | view | raw | blame | history
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(() => {
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");
              });
            }
          })