mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
feat: model
This commit is contained in:
parent
b219c72c4a
commit
4e77ebcc91
|
|
@ -135,7 +135,7 @@ const loginHandle = () => {
|
|||
}
|
||||
function makeCode() {
|
||||
loginApi.getCaptcha().then((res: any) => {
|
||||
identifyCode.value = res.captcha
|
||||
identifyCode.value = res.data.captcha
|
||||
})
|
||||
}
|
||||
onBeforeMount(() => {
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue