Commit c08165b11517bc10a3fc676b03ca8072f10777a8
1 parent
6849c433
fix: DEFECT-1259 脚本启用,点击测试为图一,然后选择了鉴权脚本再回到上行脚本,测试的上行脚本变回默认了
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | ... | @@ -201,6 +201,7 @@ |
| 201 | 201 | const handleScriptType = ({ target }) => { |
| 202 | 202 | const { value } = target; |
| 203 | 203 | scriptForm.scriptType = value; |
| 204 | + if (convertJsContent.value) return; | |
| 204 | 205 | switchScriptTypeGetContent(value); |
| 205 | 206 | }; |
| 206 | 207 | |
| ... | ... | @@ -273,6 +274,8 @@ |
| 273 | 274 | |
| 274 | 275 | const getRecordId = ref(''); |
| 275 | 276 | |
| 277 | + const convertJsContent = ref(''); | |
| 278 | + | |
| 276 | 279 | const setFormData = (v) => { |
| 277 | 280 | if (v) { |
| 278 | 281 | getRecordId.value = v?.id; |
| ... | ... | @@ -280,6 +283,7 @@ |
| 280 | 283 | Reflect.set(scriptForm, i, v[i]); |
| 281 | 284 | } |
| 282 | 285 | aceEditor.value.setValue(v.convertJs); |
| 286 | + convertJsContent.value = v.convertJs; | |
| 283 | 287 | handleFormat(); |
| 284 | 288 | } |
| 285 | 289 | }; | ... | ... |