feat: model
This commit is contained in:
parent
b219c72c4a
commit
4e77ebcc91
@ -135,7 +135,7 @@ const loginHandle = () => {
|
|||||||
}
|
}
|
||||||
function makeCode() {
|
function makeCode() {
|
||||||
loginApi.getCaptcha().then((res: any) => {
|
loginApi.getCaptcha().then((res: any) => {
|
||||||
identifyCode.value = res.captcha
|
identifyCode.value = res.data.captcha
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
|
|||||||
@ -188,6 +188,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref, computed } from 'vue'
|
import { onMounted, ref, computed } from 'vue'
|
||||||
import ModelApi from '@/api/model/model'
|
import ModelApi from '@/api/model/model'
|
||||||
|
import ProviderApi from '@/api/model/provider'
|
||||||
import type { Provider, Model } from '@/api/type/model'
|
import type { Provider, Model } from '@/api/type/model'
|
||||||
import ModelCard from '@/views/model/component/ModelCard.vue'
|
import ModelCard from '@/views/model/component/ModelCard.vue'
|
||||||
import { splitArray } from '@/utils/common'
|
import { splitArray } from '@/utils/common'
|
||||||
@ -275,7 +276,7 @@ const search_type_change = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ModelApi.getProvider(loading).then((ok) => {
|
ProviderApi.getProvider(loading).then((ok) => {
|
||||||
active_provider.value = allObj
|
active_provider.value = allObj
|
||||||
provider_list.value = [allObj, ...ok.data]
|
provider_list.value = [allObj, ...ok.data]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user