fix: 复制数据集并替换table保存提示异常

This commit is contained in:
dataeaseShu 2023-12-05 10:12:06 +08:00
parent 3de4575a8a
commit feda7d12f8

View File

@ -893,9 +893,9 @@ const resetAllfieldsUnionId = (arr, idMap) => {
let strNodeList = JSON.stringify(toRaw(datasetDrag.value.nodeList)) as string
let strAllfields = JSON.stringify(unref(allfields.value)) as string
Object.entries(idMap).forEach(([key, value]) => {
strUnion = strUnion.replace(key, value as string)
strAllfields = strAllfields.replace(key, value as string)
strNodeList = strNodeList.replace(key, value as string)
strUnion = strUnion.replaceAll(key, value as string)
strAllfields = strAllfields.replaceAll(key, value as string)
strNodeList = strNodeList.replaceAll(key, value as string)
})
allfields.value = JSON.parse(strAllfields)
datasetDrag.value.initState(JSON.parse(strNodeList))