网上查了好多文章,都有些问题,自己终于调好了
代码如下
const myConfig = {
method: "delete",
url: '/work/deleteRecord/',
data: {
"dailyId": "dbc576e9-2979-4443-8288-cffb234772b9"
}
};
this.$axios(
myConfig
).then(response => {
console.log(response);
console.log("重新加载草稿数据");
this.loadRecord()
}).catch(error => {
console.log(error);
console.log("重新加载草稿数据");
// this.loadRecord()
});