mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 19:15:06 +08:00
整理 dict data 模块的 url
This commit is contained in:
@ -38,7 +38,7 @@ export function addData(data) {
|
||||
export function updateData(data) {
|
||||
return request({
|
||||
url: '/system/dict-data/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -47,7 +47,7 @@ export function updateData(data) {
|
||||
export function delData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict-data/delete?id=' + dictCode,
|
||||
method: 'post'
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ export function addType(data) {
|
||||
export function updateType(data) {
|
||||
return request({
|
||||
url: '/system/dict-type/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@ -39,7 +39,7 @@ export function updateType(data) {
|
||||
export function delType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict-type/delete?id=' + dictId,
|
||||
method: 'post'
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user