修改登录bug

master
吃肉的饺子 2022-07-31 10:48:36 +08:00
parent c4eee5d1af
commit 3a89c6b6e8
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
}
this.$requst.post('user/login',params).then(res => {
uni.hideToast();
if(res.code==0){
if(res.data.token!=''){
let dataObj = res.data;
uni.setStorageSync('token',dataObj.token);
this.$toolAll.tools.showToast('登录成功');