Ldc
2024-04-07 930a0652ab5b2e34c8b3b184659f84ae82e8ce25
Source/ProjectWeb/src/store/modules/user.js
@@ -27,10 +27,22 @@
  } else {
    ele[propsDefault.children].forEach(child => {
      addPath(child);
    })
  }
    });
  }
}
function updateCode(items) {
  items.forEach(item => {
    item.pathValue = item.path;
    item.path = '/' + item.code;
    if (item.children && item.children.length > 0) {
      updateCode(item.children);
    }
  });
}
const user = {
  state: {
@@ -208,10 +220,12 @@
          let menu = deepClone(data);
          menu.forEach(ele => {
            addPath(ele, true);
            updateCode([ele]);
          });
          commit('SET_MENU_ALL', menu)
          commit('SET_MENU', menu)
          //dispatch('GetButtons');
          //dispatch('GetButtons');s
          resolve(menu)
        })
      })