feat(layout): 侧边栏bug修复
parent
03bb2d8906
commit
6163f06a64
|
|
@ -1,12 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-layout">
|
<div class="app-layout">
|
||||||
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''">
|
<div class="app-main" :class="user.isExpire() ? 'isExpire' : ''" style="display: flex;">
|
||||||
<layout-container>
|
<!-- 最左侧侧边栏 -->
|
||||||
<template #left>
|
<div style="width: 240px; border-right: 1px solid #e5e7eb;">
|
||||||
<Sidebar />
|
<Sidebar />
|
||||||
</template>
|
</div>
|
||||||
|
<!-- 主内容区 -->
|
||||||
|
<div style="flex: 1; overflow: hidden;">
|
||||||
<AppMain />
|
<AppMain />
|
||||||
</layout-container>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,16 @@ const checkModelType = (model_type: string) => {
|
||||||
selectModelType.value = model_type
|
selectModelType.value = model_type
|
||||||
currentModelType.value = modelTypeOptions.filter((item) => item.value === model_type)[0].text
|
currentModelType.value = modelTypeOptions.filter((item) => item.value === model_type)[0].text
|
||||||
ProviderApi.getProviderByModelType(model_type, loading).then((ok) => {
|
ProviderApi.getProviderByModelType(model_type, loading).then((ok) => {
|
||||||
list_provider.value = ok.data
|
// 排除指定的模型提供商
|
||||||
|
const excludedProviders = [
|
||||||
|
'Anthropic',
|
||||||
|
'Amazon Bedrock',
|
||||||
|
'Gemini',
|
||||||
|
'SILICONFLOW',
|
||||||
|
'Xorbits Inference',
|
||||||
|
'Regolo'
|
||||||
|
]
|
||||||
|
list_provider.value = ok.data.filter(provider => !excludedProviders.includes(provider.name))
|
||||||
list_provider.value.sort((a, b) => a.provider.localeCompare(b.provider))
|
list_provider.value.sort((a, b) => a.provider.localeCompare(b.provider))
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -219,8 +219,18 @@ const search_type_change = () => {
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
model.asyncGetProvider(loading).then((ok: any) => {
|
model.asyncGetProvider(loading).then((ok: any) => {
|
||||||
|
// 排除指定的模型提供商
|
||||||
|
const excludedProviders = [
|
||||||
|
'Anthropic',
|
||||||
|
'Amazon Bedrock',
|
||||||
|
'Gemini',
|
||||||
|
'SILICONFLOW',
|
||||||
|
'Xorbits Inference',
|
||||||
|
'Regolo'
|
||||||
|
]
|
||||||
|
const filteredProviders = ok.data.filter((provider: any) => !excludedProviders.includes(provider.name))
|
||||||
active_provider.value = allObj
|
active_provider.value = allObj
|
||||||
provider_list.value = [allObj, ...ok.data]
|
provider_list.value = [allObj, ...filteredProviders]
|
||||||
list_model()
|
list_model()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue