pages/login/userPassword.vue
@@ -90,6 +90,7 @@ this.$reqGet('getUserEntity') .then(res => { this.$u.toast('登录成功'); this.getLoginInfo(); // 记录登录信息 this.setUserTabbar(res.data.type); uni.setStorageSync('roleType', res.data.type); uni.setStorageSync("userId", res.data.userId) @@ -145,6 +146,12 @@ this.$u.toast(e); }); }, //记录登录信息 getLoginInfo(){ this.$reqPost('setApplogonTime').then((res) => { }) } } };