diff --git a/frontend/src/components/canvas/components/Editor/Preview.vue b/frontend/src/components/canvas/components/Editor/Preview.vue index 380c9d5a68..cf2b0eb7c1 100644 --- a/frontend/src/components/canvas/components/Editor/Preview.vue +++ b/frontend/src/components/canvas/components/Editor/Preview.vue @@ -152,7 +152,7 @@ export default { const _this = this const erd = elementResizeDetectorMaker() // 监听div变动事件 - const tempDom = document.getElementById('canvasInfoTemp') + const tempDom = document.getElementById('canvasInfoMain') erd.listenTo(tempDom, element => { _this.$nextTick(() => { _this.restore()