fix(web): correct spelling
This commit is contained in:
@@ -43,7 +43,7 @@ export const addModelApiKey = (model_id: string, data: MultiKeyForm) => {
|
|||||||
return request.post(`/models/${model_id}/apikeys`, data)
|
return request.post(`/models/${model_id}/apikeys`, data)
|
||||||
}
|
}
|
||||||
// Delete model API key
|
// Delete model API key
|
||||||
export const delteModelApiKey = (api_key_id: string) => {
|
export const deleteModelApiKey = (api_key_id: string) => {
|
||||||
return request.delete(`/models/apikeys/${api_key_id}`)
|
return request.delete(`/models/apikeys/${api_key_id}`)
|
||||||
}
|
}
|
||||||
// Update model status
|
// Update model status
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Form, Input, App, Button } from 'antd';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import type { ModelListItem, MultiKeyForm, MultiKeyConfigModalRef, MultiKeyConfigModalProps } from '../types';
|
import type { ModelListItem, MultiKeyForm, MultiKeyConfigModalRef, MultiKeyConfigModalProps } from '../types';
|
||||||
import RbModal from '@/components/RbModal'
|
import RbModal from '@/components/RbModal'
|
||||||
import { addModelApiKey, delteModelApiKey, getModelInfo } from '@/api/models'
|
import { addModelApiKey, deleteModelApiKey, getModelInfo } from '@/api/models'
|
||||||
|
|
||||||
const MultiKeyConfigModal = forwardRef<MultiKeyConfigModalRef, MultiKeyConfigModalProps>(({ refresh }, ref) => {
|
const MultiKeyConfigModal = forwardRef<MultiKeyConfigModalRef, MultiKeyConfigModalProps>(({ refresh }, ref) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -58,7 +58,7 @@ const MultiKeyConfigModal = forwardRef<MultiKeyConfigModalRef, MultiKeyConfigMod
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
const handleDelete = (api_key_id: string) => {
|
const handleDelete = (api_key_id: string) => {
|
||||||
delteModelApiKey(api_key_id)
|
deleteModelApiKey(api_key_id)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
message.success(t('common.deleteSuccess'))
|
message.success(t('common.deleteSuccess'))
|
||||||
getData(model)
|
getData(model)
|
||||||
|
|||||||
Reference in New Issue
Block a user