File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const loginHandle = () => {
135135}
136136function makeCode() {
137137 loginApi .getCaptcha ().then ((res : any ) => {
138- identifyCode .value = res .captcha
138+ identifyCode .value = res .data . captcha
139139 })
140140}
141141onBeforeMount (() => {
Original file line number Diff line number Diff line change 188188<script lang="ts" setup>
189189import { onMounted , ref , computed } from ' vue'
190190import ModelApi from ' @/api/model/model'
191+ import ProviderApi from ' @/api/model/provider'
191192import type { Provider , Model } from ' @/api/type/model'
192193import ModelCard from ' @/views/model/component/ModelCard.vue'
193194import { splitArray } from ' @/utils/common'
@@ -275,7 +276,7 @@ const search_type_change = () => {
275276}
276277
277278onMounted (() => {
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
You can’t perform that action at this time.
0 commit comments