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,
|
...tmpObj,
|
||||||
id,
|
id,
|
||||||
processorType: ResponseAssertionType.SCRIPT,
|
processorType: ResponseAssertionType.SCRIPT,
|
||||||
scriptName: t('apiTestDebug.preconditionScriptName'),
|
name: t('apiTestDebug.preconditionScriptName'),
|
||||||
enableCommonScript: false,
|
enableCommonScript: false,
|
||||||
script: '',
|
script: '',
|
||||||
scriptId: '',
|
scriptId: '',
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<div v-if="isShowEditScriptNameInput" class="absolute left-[12px] top-[12px] z-10 w-[calc(100%-24px)]">
|
<div v-if="isShowEditScriptNameInput" class="absolute left-[12px] top-[12px] z-10 w-[calc(100%-24px)]">
|
||||||
<a-input
|
<a-input
|
||||||
ref="scriptNameInputRef"
|
ref="scriptNameInputRef"
|
||||||
v-model:model-value="condition.scriptName"
|
v-model:model-value="condition.name"
|
||||||
:placeholder="t('apiTestDebug.preconditionScriptNamePlaceholder')"
|
:placeholder="t('apiTestDebug.preconditionScriptNamePlaceholder')"
|
||||||
:max-length="255"
|
:max-length="255"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -83,10 +83,10 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-center justify-between px-[12px] pt-[12px]">
|
<div class="flex items-center justify-between px-[12px] pt-[12px]">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<a-tooltip :content="condition.scriptName">
|
<a-tooltip :content="condition.name">
|
||||||
<div class="script-name-container">
|
<div class="script-name-container">
|
||||||
<div class="one-line-text mr-[4px] max-w-[110px] font-medium text-[var(--color-text-1)]">
|
<div class="one-line-text mr-[4px] max-w-[110px] font-medium text-[var(--color-text-1)]">
|
||||||
{{ condition.scriptName }}
|
{{ condition.name }}
|
||||||
</div>
|
</div>
|
||||||
<MsIcon type="icon-icon_edit_outlined" class="edit-script-name-icon" @click="showEditScriptNameInput" />
|
<MsIcon type="icon-icon_edit_outlined" class="edit-script-name-icon" @click="showEditScriptNameInput" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -137,7 +137,7 @@
|
||||||
data.value.push({
|
data.value.push({
|
||||||
id,
|
id,
|
||||||
processorType: type,
|
processorType: type,
|
||||||
scriptName: t('apiTestDebug.preconditionScriptName'),
|
name: t('apiTestDebug.preconditionScriptName'),
|
||||||
enableCommonScript: false,
|
enableCommonScript: false,
|
||||||
associateScenarioResult: false,
|
associateScenarioResult: false,
|
||||||
ignoreProtocols: [],
|
ignoreProtocols: [],
|
||||||
|
|
Loading…
Reference in New Issue