【发布时间】:2021-10-05 06:37:40
【问题描述】:
这是我的代码
async inputschedule(){
await axios.post('api/schedule',{
tweet:this.text,
schedule_at:this.data+' '+this.clock
})
.then((response)=>{
if (response.status == 400){
console.log(response.status)
this.error='Il post non può essere pianificato per questa data'
}
})
},
即使状态为 400 变量错误未填充,我错了什么?
【问题讨论】: