支持上传自定义图标

This commit is contained in:
wang-liang0615
2023-08-31 10:05:11 +08:00
parent 6df845d662
commit d25c3760a1
18 changed files with 554 additions and 125 deletions

31
cmdb-ui/src/api/file.js Normal file
View File

@@ -0,0 +1,31 @@
import { axios } from '@/utils/request'
export function postImageFile(parameter) {
return axios({
url: '/common-setting/v1/file',
method: 'post',
data: parameter,
})
}
export function getFileData(data_type) {
return axios({
url: `/common-setting/v1/data/${data_type}`,
method: 'get',
})
}
export function addFileData(data_type, data) {
return axios({
url: `/common-setting/v1/data/${data_type}`,
method: 'post',
data,
})
}
export function deleteFileData(data_type, id) {
return axios({
url: `/common-setting/v1/data/${data_type}/${id}`,
method: 'delete',
})
}