shuishen
2024-01-24 5ec575e709400c13eca01b6ffc70e789c0647215
首页显示BUG修复
1 files modified
8 ■■■■ changed files
src/store/modules/user.js 8 ●●●● patch | view | raw | blame | history
src/store/modules/user.js
@@ -29,6 +29,10 @@
  }
}
function findChildrenRole (data, str) {
    return data.split(',').find(item => item == str)
}
function addPath(ele, first) {
  const menu = website.menu;
  const propsConfig = menu.props;
@@ -97,7 +101,7 @@
              dispatch("GetMenu").then((menuData) => {
                let fistMenu = findChildrenUrl(menuData);
                if (data.role_name == "jdgly" || data.role_name == "sqgly") {
                if (findChildrenRole(data.role_name, "jdgly") ||findChildrenRole(data.role_name, "sqgly")) {
                  setStore({ name: "showMenu", content: true });
                  commit("SET_HOMEFIRSTTAGPAGE", {
@@ -140,7 +144,7 @@
                  resolve({ fistMenu, menuData });
                }
                // commit("DEL_ALL_TAG");
                commit("DEL_ALL_TAG");
              });
            }
          })