修改登录bug
parent
c4eee5d1af
commit
3a89c6b6e8
|
@ -43,7 +43,7 @@
|
||||||
}
|
}
|
||||||
this.$requst.post('user/login',params).then(res => {
|
this.$requst.post('user/login',params).then(res => {
|
||||||
uni.hideToast();
|
uni.hideToast();
|
||||||
if(res.code==0){
|
if(res.data.token!=''){
|
||||||
let dataObj = res.data;
|
let dataObj = res.data;
|
||||||
uni.setStorageSync('token',dataObj.token);
|
uni.setStorageSync('token',dataObj.token);
|
||||||
this.$toolAll.tools.showToast('登录成功');
|
this.$toolAll.tools.showToast('登录成功');
|
||||||
|
|
Loading…
Reference in New Issue