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