You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
381 B
23 lines
381 B
7 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
export function getAll() {
|
||
|
return request({
|
||
|
url: 'api/autorun',
|
||
|
method: 'get'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function start(id) {
|
||
|
return request({
|
||
|
url: 'api/autorun/start/' + id,
|
||
|
method: 'put'
|
||
|
})
|
||
|
} export function stop(id) {
|
||
|
return request({
|
||
|
url: 'api/autorun/stop/' + id,
|
||
|
method: 'put'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export default { start, stop }
|