模型表单优化
This commit is contained in:
@@ -35,6 +35,16 @@ export const getById = (id: string) => {
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除模型
|
||||
*/
|
||||
export const deleteModel = (id: string) => {
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/delete?id=' + id,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id部署模型
|
||||
*/
|
||||
@@ -69,15 +79,3 @@ export const updateModel = (data: any) => {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 删除流程模型
|
||||
*/
|
||||
export const deleteModel = (data: any) => {
|
||||
let ids = [data]
|
||||
return createAxios({
|
||||
url: MAPPING_PATH + '/delete',
|
||||
method: 'POST',
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user