fix(接口测试): 修复多调api/case表格接口的缺陷

This commit is contained in:
teukkk 2024-05-09 13:23:23 +08:00 committed by Craftsman
parent 283086b461
commit 1a63411395
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="flex flex-1 flex-col overflow-hidden">
<div v-if="activeApiTab.id === 'all'" class="flex-1 pt-[8px]">
<div v-if="activeApiTab.id === 'all' && currentTab === 'api'" class="flex-1 pt-[8px]">
<apiTable
:active-module="props.activeModule"
:offspring-ids="props.offspringIds"
@ -175,6 +175,7 @@
offspringIds: string[];
moduleTree: ModuleTreeNode[]; //
protocol: string;
currentTab: string;
memberOptions: { label: string; value: string }[];
}>();

View File

@ -1,6 +1,6 @@
<template>
<div class="flex flex-1 flex-col overflow-hidden">
<div v-if="activeApiTab.id === 'all'" class="flex-1 overflow-hidden">
<div v-if="activeApiTab.id === 'all' && currentTab === 'case'" class="flex-1 overflow-hidden">
<caseTable
ref="caseTableRef"
:offspring-ids="props.offspringIds"
@ -48,6 +48,7 @@
offspringIds: string[];
moduleTree: ModuleTreeNode[]; //
memberOptions: { label: string; value: string }[];
currentTab: string;
}>();
const emit = defineEmits<{
(e: 'deleteCase', id: string): void;

View File

@ -43,6 +43,7 @@
:offspring-ids="props.offspringIds"
:protocol="props.protocol"
:module-tree="props.moduleTree"
:current-tab="currentTab"
:member-options="memberOptions"
@import="emit('import')"
@delete-api="(id) => handleDeleteApiFromModuleTree(id)"
@ -55,6 +56,7 @@
:active-module="props.activeModule"
:protocol="props.protocol"
:module-tree="props.moduleTree"
:current-tab="currentTab"
:offspring-ids="props.offspringIds"
:member-options="memberOptions"
@delete-case="(id) => handleDeleteApiFromModuleTree(id)"