mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-02 15:52:26 +08:00
refactor(frontend): 优化 API Keys 功能模块
- 改进 StandaloneKeyFormDialog 组件
This commit is contained in:
@@ -330,6 +330,7 @@ import { useFormDialog } from '@/composables/useFormDialog'
|
|||||||
import { getProvidersSummary } from '@/api/endpoints/providers'
|
import { getProvidersSummary } from '@/api/endpoints/providers'
|
||||||
import { getGlobalModels } from '@/api/global-models'
|
import { getGlobalModels } from '@/api/global-models'
|
||||||
import { adminApi } from '@/api/admin'
|
import { adminApi } from '@/api/admin'
|
||||||
|
import { log } from '@/utils/logger'
|
||||||
import { parseNumberInput } from '@/utils/form'
|
import { parseNumberInput } from '@/utils/form'
|
||||||
import type { ProviderWithEndpointsSummary, GlobalModelResponse } from '@/api/endpoints/types'
|
import type { ProviderWithEndpointsSummary, GlobalModelResponse } from '@/api/endpoints/types'
|
||||||
|
|
||||||
@@ -436,7 +437,7 @@ async function loadAccessRestrictionOptions() {
|
|||||||
globalModels.value = modelsData.models || []
|
globalModels.value = modelsData.models || []
|
||||||
allApiFormats.value = formatsData.formats?.map((f: any) => f.value) || []
|
allApiFormats.value = formatsData.formats?.map((f: any) => f.value) || []
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('加载访问限制选项失败:', err)
|
log.error('加载访问限制选项失败:', err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user