style(接口管理): 修改api定义下调试模式的保存按钮样式

--bug=1037877 --user=吕梦园 【接口测试】定义-编辑接口-调试-保存按钮无下拉图标
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037877
This commit is contained in:
teukkk 2024-04-01 17:40:29 +08:00 committed by 刘瑞斌
parent 81eff15c8b
commit 90da30e833
1 changed files with 12 additions and 11 deletions

View File

@ -111,20 +111,21 @@
"
>
<!-- 接口定义-调试模式可保存或保存为新用例 -->
<a-dropdown
<a-dropdown-button
v-if="requestVModel.mode === 'debug'"
:loading="saveLoading"
:disabled="isHttpProtocol && !requestVModel.url"
@select="handleSelect"
:disabled="(isHttpProtocol && !requestVModel.url) || saveLoading"
@click="() => handleSelect('save')"
>
<a-button type="secondary">
{{ t('common.save') }}
</a-button>
<template #content>
<a-doption value="save">{{ t('common.save') }}</a-doption>
<a-doption value="saveAsCase">{{ t('apiTestManagement.saveAsCase') }}</a-doption>
{{ t('common.save') }}
<template #icon>
<icon-down />
</template>
</a-dropdown>
<template #content>
<a-doption value="saveAsCase" @click="() => handleSelect('saveAsCase')">
{{ t('apiTestManagement.saveAsCase') }}
</a-doption>
</template>
</a-dropdown-button>
<!-- 接口定义-定义模式直接保存接口定义 -->
<a-button v-else type="primary" :loading="saveLoading" @click="() => handleSelect('save')">
{{ t('common.save') }}