mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-06-21 00:00:03 +08:00
21 lines
355 B
JavaScript
21 lines
355 B
JavaScript
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)
|
|
})
|
|
})
|
|
}
|