diff --git a/src/frontend/src/components/ace-editor/index.vue b/src/frontend/src/components/ace-editor/index.vue index 2c14c4ef07..501116907d 100644 --- a/src/frontend/src/components/ace-editor/index.vue +++ b/src/frontend/src/components/ace-editor/index.vue @@ -301,6 +301,7 @@ if (this.readonly) { this.editor.setValue(Base64.decode(value)); this.editor.clearSelection(); + this.syntaxCheck(value); } // 外部传入空置直接清空编辑器 if (value === '' && this.content !== '') { diff --git a/src/frontend/src/utils/assist/script-error-confirm.js b/src/frontend/src/utils/assist/script-error-confirm.js index d05a3546c3..f5dd617711 100644 --- a/src/frontend/src/utils/assist/script-error-confirm.js +++ b/src/frontend/src/utils/assist/script-error-confirm.js @@ -74,6 +74,7 @@ const sacnDialog = (resolve, reject) => { ))(h), + closeFn: handleCancel, }); }; @@ -109,6 +110,7 @@ const preventDialog = (resolve, reject) => { ))(h), + closeFn: handleClose, }); };