瀏覽代碼

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){
       handleShowSetVariety(item){
         this.activeItem=item
         this.activeItem=item
-        this.checkedVariety=item.EnPermissions||[]
+        this.checkedVariety=_.cloneDeep(item.EnPermissions||[]) 
         this.showSetVariety=true
         this.showSetVariety=true
       },
       },
       handleChangeVariety(){
       handleChangeVariety(){