报错提示loadAuthData(...).then(...).fail is not a function
代码如下:
loadData(){
this.loading('show');
var param = {
userId:this.id
};
var _this = this;
common.loadAuthData().then((data)=> {
console.log(data);
_this.username = data.result.username;
_this.idCard = data.result.idNum;
_this.reidCard = data.result.idNum;
_this.firstName = data.result.firstName;
_this.lastName = data.result.lastName
}).fail(()=> {
_this.broadcast('请求用户数据失败,请重试');
}).always(()=> {
_this.loading('hide');
})
},
别告诉我你是直接在浏览器上运行的...