Pārlūkot izejas kodu

fix:商家管理,按钮权限添加子项后商家权限会自动全部选中

chenlei 1 nedēļu atpakaļ
vecāks
revīzija
6556de0c9a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/views/business_manage/businessAuth.vue

+ 2 - 2
src/views/business_manage/businessAuth.vue

@@ -65,7 +65,7 @@ const getBusinessAuthList = async () => {
     authList.value = List;
     checkList.value = ChoiceList.filter(element => !HalfChoiceList.includes(element)); // 过滤掉半选状态的节点
 
-    authList.value.forEach(item => checkTree(item));
+    // authList.value.forEach(item => checkTree(item));
 
     nextTick(async () => {
       authList.value.forEach(item => checkTree(item));
@@ -92,7 +92,7 @@ const checkTree = (data) => {
 
 //根据MenuId找到对应节点
 const findTreeNode = (MenuId) => {
-  return refCheckboxTree.value.getItems({value:MenuId})
+  return refCheckboxTree.value.getItem(MenuId)
 };
 
 const checkDataList = (data) => {