Преглед изворни кода

bug3172:深拷贝的问题

cxmo пре 1 година
родитељ
комит
42b331b7dc
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/custom_manage/customList/customListEn.vue

+ 1 - 1
src/views/custom_manage/customList/customListEn.vue

@@ -281,7 +281,7 @@ import reportVarietyEnSet from '@/components/reportVarietyEnSet.vue'
       },
       handleShowSetVariety(item){
         this.activeItem=item
-        this.checkedVariety=item.EnPermissions||[]
+        this.checkedVariety=_.cloneDeep(item.EnPermissions||[]) 
         this.showSetVariety=true
       },
       handleChangeVariety(){