perf: 优化模型选择组件

This commit is contained in:
wangdan-fit2cloud 2024-07-25 16:36:44 +08:00
parent 76dac79b2e
commit 1b8b11315c
4 changed files with 17 additions and 5 deletions

View File

@ -88,12 +88,18 @@
:value="item.id"
class="flex-between"
>
<div class="flex">
<div class="flex align-center">
<span
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
class="model-icon mr-8"
></span>
<span>{{ item.name }}</span>
<el-tag
v-if="item.permission_type === 'PUBLIC'"
type="info"
class="info-tag ml-8"
>公用
</el-tag>
</div>
<el-icon class="check-icon" v-if="item.id === applicationForm.model_id"
><Check

View File

@ -47,13 +47,13 @@
:value="item.id"
class="flex-between"
>
<div class="flex">
<div class="flex align-center">
<span
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
class="model-icon mr-8"
></span>
<span>{{ item.name }}</span>
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag">公用</el-tag>
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag ml-8">公用</el-tag>
</div>
<el-icon class="check-icon" v-if="item.id === form.embedding_mode_id"
><Check

View File

@ -47,12 +47,15 @@
:value="item.id"
class="flex-between"
>
<div class="flex">
<div class="flex align-center">
<span
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
class="model-icon mr-8"
></span>
<span>{{ item.name }}</span>
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag ml-8"
>公用
</el-tag>
</div>
<el-icon class="check-icon" v-if="item.id === chat_data.model_id"
><Check

View File

@ -47,12 +47,15 @@
:value="item.id"
class="flex-between"
>
<div class="flex">
<div class="flex align-center">
<span
v-html="relatedObject(providerOptions, label, 'provider')?.icon"
class="model-icon mr-8"
></span>
<span>{{ item.name }}</span>
<el-tag v-if="item.permission_type === 'PUBLIC'" type="info" class="info-tag ml-8"
>公用
</el-tag>
</div>
<el-icon class="check-icon" v-if="item.id === form_data.model_id"
><Check