Merge pull request #6997 from dataease/pr@dev-v2_dzz

Pr@dev v2 dzz
This commit is contained in:
dataeaseShu 2023-12-05 10:39:26 +08:00 committed by GitHub
commit 6ebf22aa7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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))