uni.request({
url: that.serverapi+'/api/login',
data:data,
method:'POST',
header:{'content-type':'application/x-www-form-urlencoded'},
success: (res) => {
console.log(res.data)
console.log(res.data.retCode)
}
})
打印结果1:
20:33:46.829 {"retCode":0,"retMsg":"登录成功","data":{"token":"Njk1MDAx","phone":"18513233949"}} at pages/login/login.vue:184
打印结果2:
20:33:46.849 undefined at pages/login/login.vue:185
0 个回复