重构:完善配置管理的删除功能

This commit is contained in:
YunaiV
2023-03-10 08:04:14 +08:00
parent 5c675995cb
commit faaa47abdc
3 changed files with 27 additions and 8 deletions

View File

@ -30,7 +30,7 @@ export const getConfig = (id: number) => {
}
// 根据参数键名查询参数值
export const getConfigKeyApi = (configKey: string) => {
export const getConfigKey = (configKey: string) => {
return request.get({ url: '/infra/config/get-value-by-key?key=' + configKey })
}
@ -45,7 +45,7 @@ export const updateConfig = (data: ConfigVO) => {
}
// 删除参数
export const deleteConfigApi = (id: number) => {
export const deleteConfig = (id: number) => {
return request.delete({ url: '/infra/config/delete?id=' + id })
}