shuishen
2024-01-24 33d81a668d13750dfe460098c8cbaa50406ddf34
管理员显示首页调整
1 files modified
10 ■■■■ changed files
src/store/modules/user.js 10 ●●●● patch | view | raw | blame | history
src/store/modules/user.js
@@ -29,8 +29,8 @@
  }
}
function findChildrenRole (data, str) {
    return data.split(',').find(item => item == str)
function findChildrenRole(data, str) {
  return data.split(",").find((item) => item == str);
}
function addPath(ele, first) {
@@ -101,7 +101,11 @@
              dispatch("GetMenu").then((menuData) => {
                let fistMenu = findChildrenUrl(menuData);
                if (findChildrenRole(data.role_name, "jdgly") ||findChildrenRole(data.role_name, "sqgly")) {
                if (
                  findChildrenRole(data.role_name, "admin") ||
                  findChildrenRole(data.role_name, "jdgly") ||
                  findChildrenRole(data.role_name, "sqgly")
                ) {
                  setStore({ name: "showMenu", content: true });
                  commit("SET_HOMEFIRSTTAGPAGE", {