fix(接口测试): 修复参数页面设置丢失问题
【【接口测试】接口定义-API-查看接口-用例-创建用例请求体选form-data格式,修改表头设置后该设置功能消失了】https://www.tapd.cn/55049933/bugtrace/bugs/view?bug_id=1155049933001037545
This commit is contained in:
parent
53802e892b
commit
197d215ee5
|
@ -16,7 +16,13 @@
|
|||
<div class="flex-col">
|
||||
<div v-for="item in nonSortColumn" :key="item.dataIndex" class="column-item">
|
||||
<div>{{ t((item.title || item.columnTitle) as string) }}</div>
|
||||
<a-switch v-model="item.showInTable" size="small" type="line" @change="handleSwitchChange" />
|
||||
<a-switch
|
||||
v-if="item.slotName !== SpecialColumnEnum.OPERATION"
|
||||
v-model="item.showInTable"
|
||||
size="small"
|
||||
type="line"
|
||||
@change="handleSwitchChange"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<a-divider v-if="nonSortColumn.length" orientation="center" class="non-sort"
|
||||
|
@ -53,6 +59,8 @@
|
|||
import { useI18n } from '@/hooks/useI18n';
|
||||
import { useTableStore } from '@/store';
|
||||
|
||||
import { SpecialColumnEnum } from '@/enums/tableEnum';
|
||||
|
||||
import { MsTableColumn } from './type';
|
||||
|
||||
// 不能拖拽的列
|
||||
|
|
|
@ -701,8 +701,7 @@
|
|||
return httpContentTabList.filter(
|
||||
(e) =>
|
||||
!(!restNumApi.value && e.value === RequestComposition.REST) &&
|
||||
!(!queryNumApi.value && e.value === RequestComposition.QUERY) &&
|
||||
!(!bodyTabBadgeApi.value?.length && e.value === RequestComposition.BODY)
|
||||
!(!queryNumApi.value && e.value === RequestComposition.QUERY)
|
||||
);
|
||||
}
|
||||
if (props.isDefinition) {
|
||||
|
|
Loading…
Reference in New Issue