feat:额外产物添加

This commit is contained in:
liailing1026
2025-12-21 15:28:59 +08:00
parent b42ab5aedd
commit b987fe70ad
11 changed files with 281 additions and 587 deletions

View File

@@ -97,6 +97,38 @@ const agentsStore = useAgentsStore()
class="h-[1px] w-full bg-[var(--color-border-default)] my-[8px]"
></div>
</div>
<div
v-if="item.apiUrl"
class="h-[1px] w-full bg-[var(--color-border-default)] my-[8px]"
></div>
<!-- 使用 v-if 判断 item 中是否存在 apiUrl -->
<div v-if="item.apiUrl" class="text-[12px] break-all">
<span class="text-[12px] text-[red]">apiUrl:</span>
<span class="text-[12px] text-[var(--color-text-quaternary)] break-all ml-2">{{
item.apiUrl
}}</span>
</div>
<!-- 只有当 item.apiUrl 存在时才显示上面的分隔线 -->
<div
v-if="item.apiUrl"
class="h-[1px] w-full bg-[var(--color-border-default)] my-[8px]"
></div>
<!-- 使用 v-if 判断 item 中是否存在 apiModel -->
<div v-if="item.apiModel" class="text-[12px]">
<span class="text-[12px] text-[blue]">apiModel:</span>
<span class="text-[12px] text-[var(--color-text-quaternary)] ml-2">{{
item.apiModel
}}</span>
</div>
<!-- 只有当 item.apiModel 存在时才显示下面的分隔线 -->
<div
v-if="item.apiModel"
class="h-[1px] w-full bg-[var(--color-border-default)] my-[8px]"
></div>
</div>
</div>
</div>