mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 19:02:29 +00:00
fix(admin-spa): 修复版本号显示位置,使其与网站名称在同一行显示
This commit is contained in:
@@ -556,17 +556,13 @@ const createApiKey = async () => {
|
||||
tags: form.tags.length > 0 ? form.tags : undefined
|
||||
}
|
||||
|
||||
// 模型限制
|
||||
// 模型限制 - 始终提交这些字段
|
||||
data.enableModelRestriction = form.enableModelRestriction
|
||||
if (form.enableModelRestriction && form.restrictedModels.length > 0) {
|
||||
data.restrictedModels = form.restrictedModels
|
||||
}
|
||||
data.restrictedModels = form.restrictedModels
|
||||
|
||||
// 客户端限制
|
||||
// 客户端限制 - 始终提交这些字段
|
||||
data.enableClientRestriction = form.enableClientRestriction
|
||||
if (form.enableClientRestriction && form.allowedClients.length > 0) {
|
||||
data.allowedClients = form.allowedClients
|
||||
}
|
||||
data.allowedClients = form.allowedClients
|
||||
|
||||
const result = await apiClient.post('/admin/api-keys', data)
|
||||
|
||||
|
||||
@@ -446,21 +446,13 @@ const updateApiKey = async () => {
|
||||
tags: form.tags
|
||||
}
|
||||
|
||||
// 模型限制
|
||||
// 模型限制 - 始终提交这些字段
|
||||
data.enableModelRestriction = form.enableModelRestriction
|
||||
if (form.enableModelRestriction && form.restrictedModels.length > 0) {
|
||||
data.restrictedModels = form.restrictedModels
|
||||
} else {
|
||||
data.restrictedModels = []
|
||||
}
|
||||
data.restrictedModels = form.restrictedModels
|
||||
|
||||
// 客户端限制
|
||||
// 客户端限制 - 始终提交这些字段
|
||||
data.enableClientRestriction = form.enableClientRestriction
|
||||
if (form.enableClientRestriction && form.allowedClients.length > 0) {
|
||||
data.allowedClients = form.allowedClients
|
||||
} else {
|
||||
data.allowedClients = []
|
||||
}
|
||||
data.allowedClients = form.allowedClients
|
||||
|
||||
const result = await apiClient.put(`/admin/api-keys/${props.apiKey.id}`, data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user