fix(接口测试): 修复输入脚本名称不生效的缺陷
--bug=1037411 --user=王孝刚 【接口测试】定义-调试-后置-脚本操作-不输入脚本名称保存后查看名称消失 https://www.tapd.cn/55049933/s/1478976
This commit is contained in:
parent
281abfcfcc
commit
e37f959026
|
@ -339,7 +339,7 @@
|
|||
...tmpObj,
|
||||
id,
|
||||
processorType: ResponseAssertionType.SCRIPT,
|
||||
scriptName: t('apiTestDebug.preconditionScriptName'),
|
||||
name: t('apiTestDebug.preconditionScriptName'),
|
||||
enableCommonScript: false,
|
||||
script: '',
|
||||
scriptId: '',
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<div v-if="isShowEditScriptNameInput" class="absolute left-[12px] top-[12px] z-10 w-[calc(100%-24px)]">
|
||||
<a-input
|
||||
ref="scriptNameInputRef"
|
||||
v-model:model-value="condition.scriptName"
|
||||
v-model:model-value="condition.name"
|
||||
:placeholder="t('apiTestDebug.preconditionScriptNamePlaceholder')"
|
||||
:max-length="255"
|
||||
size="small"
|
||||
|
@ -83,10 +83,10 @@
|
|||
</div>
|
||||
<div class="flex items-center justify-between px-[12px] pt-[12px]">
|
||||
<div class="flex items-center">
|
||||
<a-tooltip :content="condition.scriptName">
|
||||
<a-tooltip :content="condition.name">
|
||||
<div class="script-name-container">
|
||||
<div class="one-line-text mr-[4px] max-w-[110px] font-medium text-[var(--color-text-1)]">
|
||||
{{ condition.scriptName }}
|
||||
{{ condition.name }}
|
||||
</div>
|
||||
<MsIcon type="icon-icon_edit_outlined" class="edit-script-name-icon" @click="showEditScriptNameInput" />
|
||||
</div>
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
data.value.push({
|
||||
id,
|
||||
processorType: type,
|
||||
scriptName: t('apiTestDebug.preconditionScriptName'),
|
||||
name: t('apiTestDebug.preconditionScriptName'),
|
||||
enableCommonScript: false,
|
||||
associateScenarioResult: false,
|
||||
ignoreProtocols: [],
|
||||
|
|
Loading…
Reference in New Issue