fix: 处理注册之后,位置错误的问题
This commit is contained in:
parent
32743391f8
commit
1b01fd81a8
@ -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)
|
||||
}
|
||||
|
||||
// 注册子应用
|
||||
|
Loading…
x
Reference in New Issue
Block a user