Explorar o código

bug3172:深拷贝的问题

cxmo hai 1 ano
pai
achega
42b331b7dc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(){