对应文件引入 axios
import axios from 'axios'
JS代码
return axios.put(process.env.VUE_APP_QUARTZ_API + '/monitor/job/changeStatus', {
jobId : row.jobId,
status : row.status
}, {
headers: {
'Content-Type': 'application/json',
'Authorization': encodeURIComponent(getToken())
}
});