pages/login/login.vue
@@ -92,7 +92,6 @@ }); this.$nextTick(() => { apiLoginWx({ code: uni.getStorageSync('openid') }).then(res => { uni.hideLoading(); if (res.code != 1) { this.$u.toast('恭喜您,登录成功!'); // 登陆成功,存储相关信息 @@ -104,6 +103,7 @@ this.setUserTabbar(res.data.type); uni.setStorageSync('roleType', res.data.type); setCustomerId(res.data.customerid); uni.hideLoading(); //跳转页面 this.$nextTick(() => { redirectHome();