linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
store/index.js
@@ -97,6 +97,7 @@
      // },
      //设置当前激活的角色
      setActiveRole(state, role) {
         console.log("role===>", role);
         state.activeRole = role
         uni.setStorageSync('activeRole', role)
      },
@@ -132,6 +133,8 @@
   },
   actions: {
      getMenuList({
         commit
      }) {
@@ -146,9 +149,9 @@
            }
            if (uni.getStorageSync("siteInfo").addressType == 1 || roleName == "居民") {
               param.labelType = uni.getStorageSync("siteInfo").addressType;
               param.roleName = roleName;
               param.houseCode = uni.getStorageSync("siteInfo").houseCode;
            }
            console.log("===>", param);
            param.roleName = roleName;
            dynamicMenu(param).then(res => {
               if (res.code == 200) {
                  let data = res.data;