refactor(仪表板): 新建视图默认加到主画布中

This commit is contained in:
wangjiahao 2022-10-24 18:05:23 +08:00
parent 716328444e
commit 6348dc6933

View File

@ -1297,6 +1297,8 @@ export default {
component.x = 1
component.y = 1
}
component['canvasId'] = 'canvas-main'
component['canvasPid'] = '0'
component.id = newComponentId
//
component.commonBackground = deepCopy(COMMON_BACKGROUND)