Skip to content

Commit

Permalink
bugfix: 选用“业务脚本”或“公共脚本”时匹配中高危语句的交互,要和手工输入的保持一致 TencentBlueKing#1294
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Sep 26, 2022
1 parent 95ee42a commit 20d35eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/src/components/ace-editor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
if (this.readonly) {
this.editor.setValue(Base64.decode(value));
this.editor.clearSelection();
this.syntaxCheck(value);
}
// 外部传入空置直接清空编辑器
if (value === '' && this.content !== '') {
Expand Down
2 changes: 2 additions & 0 deletions src/frontend/src/utils/assist/script-error-confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const sacnDialog = (resolve, reject) => {
</div>
</div>
))(h),
closeFn: handleCancel,
});
};

Expand Down Expand Up @@ -109,6 +110,7 @@ const preventDialog = (resolve, reject) => {
</div>
</div>
))(h),
closeFn: handleClose,
});
};

Expand Down

0 comments on commit 20d35eb

Please sign in to comment.