fix: 处理注册之后,位置错误的问题

This commit is contained in:
奔跑的面条 2022-08-19 14:44:40 +08:00
parent a6d1baec3e
commit 177fa6bfbe

View File

@ -58,7 +58,7 @@ export const useSync = () => {
if (changeId) {
callBack(Object.assign(newComponent, { ..._componentInstance, id: getUUID() }))
} else {
callBack(Object.assign(newComponent))
callBack(Object.assign(newComponent, _componentInstance))
}
} else {
if (changeId) {
@ -68,7 +68,7 @@ export const useSync = () => {
true
)
} else {
chartEditStore.addComponentList(Object.assign(newComponent), false, true)
chartEditStore.addComponentList(Object.assign(newComponent, _componentInstance), false, true)
}
}
}
@ -79,7 +79,7 @@ export const useSync = () => {
if (changeId) {
groupClass = Object.assign(groupClass, { ...comItem, id: getUUID() })
} else {
groupClass = Object.assign(groupClass, { ...comItem })
groupClass = Object.assign(groupClass, comItem)
}
// 注册子应用