wms_client_kate_suzhou/src/api/config.js

34 lines
632 B
JavaScript
Raw Normal View History

2024-07-02 08:16:55 +08:00
import request from "@/http/request";
const getConfigs = () => {
return request.get('/config/getConfigs')
}
const updateConfig = (params) => {
return request.post('/config/updateConfig', params)
}
2024-07-19 13:46:52 +08:00
const restartSystem = (params) => {
return request({
url: '/system/restartSystem',
method: 'post',
data: params,
timeout: 5000
})
2024-07-02 08:16:55 +08:00
}
2024-07-19 13:46:52 +08:00
const reloadConfig = (params) => {
return request({
url: '/system/reloadConfig',
method: 'post',
data: params,
timeout: 5000
})
2024-07-02 08:16:55 +08:00
}
export {
getConfigs,
updateConfig,
2024-07-19 13:46:52 +08:00
restartSystem,
reloadConfig
2024-07-02 08:16:55 +08:00
}