Forráskód Böngészése

bug3172:深拷贝的问题

cxmo 1 éve
szülő
commit
42b331b7dc
1 módosított fájl, 1 hozzáadás és 1 törlés
  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(){