async login (){
let form = this.form
let obj = {}
let newForm = Object.assign(obj,form)
console.log(newForm);
let post = await request({url:'/login/post',method:'post',data:newForm})
console.log('post---------',post);
}
报错:Uncaught (in promise) undefined
这是咋回事啊,async await不就是这么用的吗?