Skip to content

Commit 4e77ebc

Browse files
feat: model
1 parent b219c72 commit 4e77ebc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ui/src/views/login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const loginHandle = () => {
135135
}
136136
function makeCode() {
137137
loginApi.getCaptcha().then((res: any) => {
138-
identifyCode.value = res.captcha
138+
identifyCode.value = res.data.captcha
139139
})
140140
}
141141
onBeforeMount(() => {

ui/src/views/model/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@
188188
<script lang="ts" setup>
189189
import { onMounted, ref, computed } from 'vue'
190190
import ModelApi from '@/api/model/model'
191+
import ProviderApi from '@/api/model/provider'
191192
import type { Provider, Model } from '@/api/type/model'
192193
import ModelCard from '@/views/model/component/ModelCard.vue'
193194
import { splitArray } from '@/utils/common'
@@ -275,7 +276,7 @@ const search_type_change = () => {
275276
}
276277
277278
onMounted(() => {
278-
ModelApi.getProvider(loading).then((ok) => {
279+
ProviderApi.getProvider(loading).then((ok) => {
279280
active_provider.value = allObj
280281
provider_list.value = [allObj, ...ok.data]
281282

0 commit comments

Comments
 (0)