前端axios绝对路径进行PUT请求
作者:互联网
对应文件引入 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())
}
});
标签:status,axios,process,jobId,VUE,PUT,绝对路径,row 来源: https://www.cnblogs.com/zhangwdi/p/15932892.html