【新增】增加基本设置

This commit is contained in:
zhoulingpo
2023-05-04 14:26:09 +08:00
parent fef946e0bd
commit 36f9d91cce
5 changed files with 86 additions and 12 deletions
+27
View File
@@ -0,0 +1,27 @@
import { instance as request } from '@/utils/request'
export default {
// 保存
saveMarket(data) {
return request({
url: '/api/sys/config/save',
method: 'POST',
data
})
},
// 获取一个配置项
getOneSetting(data) {
return request({
url: '/api/sys/config/'+data,
method: 'get'
})
},
// 获取全部配置项
getAllSetting(data) {
return request({
url: '/api/sys/config/all',
method: 'get',
params:data
})
},
}