feat: model

This commit is contained in:
wangdan-fit2cloud 2025-05-07 10:10:10 +08:00
parent b219c72c4a
commit 4e77ebcc91
2 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,7 @@ const loginHandle = () => {
}
function makeCode() {
loginApi.getCaptcha().then((res: any) => {
identifyCode.value = res.captcha
identifyCode.value = res.data.captcha
})
}
onBeforeMount(() => {

View File

@ -188,6 +188,7 @@
<script lang="ts" setup>
import { onMounted, ref, computed } from 'vue'
import ModelApi from '@/api/model/model'
import ProviderApi from '@/api/model/provider'
import type { Provider, Model } from '@/api/type/model'
import ModelCard from '@/views/model/component/ModelCard.vue'
import { splitArray } from '@/utils/common'
@ -275,7 +276,7 @@ const search_type_change = () => {
}
onMounted(() => {
ModelApi.getProvider(loading).then((ok) => {
ProviderApi.getProvider(loading).then((ok) => {
active_provider.value = allObj
provider_list.value = [allObj, ...ok.data]