mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-07-28 00:00:12 +08:00
commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import request from '@/scripts/request'
|
||||
|
||||
export function saveData(params) {
|
||||
return request({
|
||||
url: 'dict/save',
|
||||
method: 'post',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function getDictItems() {
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: 'dict/items/all',
|
||||
method: 'get'
|
||||
}).then(res => {
|
||||
resolve(res.data)
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user