fix(全局): bug 修复

This commit is contained in:
baiqi 2024-05-29 19:11:54 +08:00 committed by 刘瑞斌
parent e7e45eb9bd
commit 9b80849847
2 changed files with 16 additions and 10 deletions

View File

@ -1,14 +1,20 @@
<template>
<a-tooltip :content="tagsTooltip" :position="props.tagPosition" :mouse-enter-delay="300">
<div class="flex max-w-[440px] flex-row" @click="emit('click')">
<MsTag v-for="tag of showTagList" :key="tag.id" :width="getTagWidth(tag)" :size="props.size" v-bind="attrs">
{{ props.isStringTag ? tag : tag[props.nameKey] }}
</MsTag>
<MsTag v-if="props.tagList.length > props.showNum" :width="numberTagWidth" :size="props.size" v-bind="attrs">
+{{ props.tagList.length - props.showNum }}</MsTag
<a-tooltip
v-if="props.tagList.length > props.showNum"
:content="tagsTooltip"
:position="props.tagPosition"
:mouse-enter-delay="300"
>
</div>
<MsTag :width="numberTagWidth" :size="props.size" tooltip-disabled v-bind="attrs">
+
{{ props.tagList.length - props.showNum }}
</MsTag>
</a-tooltip>
</div>
</template>
<script setup lang="ts">

View File

@ -218,7 +218,7 @@
otherConfig: apiDetailInfo.value.otherConfig ?? apiDetailInfo.value.request.otherConfig,
url: apiDetailInfo.value.url ?? apiDetailInfo.value.request.url,
}
: {}),
: apiDetailInfo.value),
children: apiDetailInfo.value.children ?? apiDetailInfo.value.request.children,
};
//