Closed n9ti closed 7 years ago
old
this.getInfoAsync({ axiosConfig: { url: this.url }, dataCallback (data, state) { return data.data.msg }, successCallback (data) { console.log(data) }, errorCallback (error) { console.log(error) } })
new
this.getInfoAsync({ axiosConfig: { url: this.url }, dataCallback (data, state) { return data.data.msg } }).then((data) => { console.log(data) }).catch((error) => { console.log(error) })
old
new