Prechádzať zdrojové kódy

解构赋值,避免子集套用父级无限循环

lifanagju_citu 2 mesiacov pred
rodič
commit
d61ff12034

+ 2 - 1
src/views/menduner/system/talentMap/maintenance/gather/components/store.vue

@@ -222,7 +222,7 @@ const open = async (task_type, parse_result, task_id, isDetail) => {
   resetData()
   source.value = task_type
   const dataList = results.map(e => {
-    if (source.value === '招聘') e.data = e
+    if (source.value === '招聘') e.data = { ...e }
     // 切换标签
     tagList.value.push({ name: e.data.name_zh, checked: true })
     return e
@@ -286,6 +286,7 @@ const handleStore = async () => {
         results
       }
     }
+    debugger
     await talentGatherApi.talentsAdd(JSON.stringify(params))
     message.success('入库成功!')
     dialogVisible.value = false