mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 处理注册之后,位置错误的问题
This commit is contained in:
parent
a6d1baec3e
commit
177fa6bfbe
@ -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…
Reference in New Issue
Block a user