Skip to content

Commit

Permalink
bugfix: 已上线的脚本,为啥还提示未保存的内容 TencentBlueKing#1307
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Sep 23, 2022
1 parent 771ca63 commit 95ee42a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
18 changes: 10 additions & 8 deletions src/frontend/src/views/script-manage/common/copy-create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,16 @@
</jb-form>
</div>
<div ref="content">
<ace-editor
v-if="contentHeight > 0"
ref="aceEditor"
v-model="formData.content"
:lang="formData.typeName"
:height="contentHeight"
:options="formData.typeName"
@on-mode-change="handleTypeChange" />
<jb-form :model="formData">
<ace-editor
v-if="contentHeight > 0"
ref="aceEditor"
v-model="formData.content"
:lang="formData.typeName"
:height="contentHeight"
:options="formData.typeName"
@on-mode-change="handleTypeChange" />
</jb-form>
</div>
<template #footer>
<bk-button
Expand Down
16 changes: 9 additions & 7 deletions src/frontend/src/views/script-manage/common/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@
</jb-form>
</div>
<div ref="content">
<ace-editor
ref="aceEditor"
v-model="formData.content"
:lang="formData.typeName"
:height="contentHeight"
:readonly="!scriptInfo.isDraft"
:options="formData.typeName" />
<jb-form :model="formData">
<ace-editor
ref="aceEditor"
v-model="formData.content"
:lang="formData.typeName"
:height="contentHeight"
:readonly="!scriptInfo.isDraft"
:options="formData.typeName" />
</jb-form>
</div>
<template #footer>
<bk-button
Expand Down

0 comments on commit 95ee42a

Please sign in to comment.