From 8e095c1fd6164fafc7d5cfd144528a0d67afef7c Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期三, 22 三月 2023 17:31:15 +0800 Subject: [PATCH] 转发页面修改 --- pages/login/userPassword.vue | 30 ++++++++++++++++-------------- 1 files changed, 16 insertions(+), 14 deletions(-) diff --git a/pages/login/userPassword.vue b/pages/login/userPassword.vue index 51b35b9..605b5a5 100644 --- a/pages/login/userPassword.vue +++ b/pages/login/userPassword.vue @@ -43,7 +43,7 @@ }, data() { return { - username: '18804050607',// 瀹㈡埛 + username: 'appuser', // 瀹㈡埛 // username: '18805080506',// 鐜嬫锛堝徃鏈猴級 password: '123456', remember: true, @@ -84,20 +84,22 @@ setRefreshToken(res.refresh_token); setUsernameKey(res.username); //鏌ヨ鐢ㄦ埛璇︾粏淇℃伅骞跺偍瀛� - this.$reqGet('getUserEntity').then(res => { - this.$u.toast('鎭枩鎮紝鐧诲綍鎴愬姛锛�'); - this.setUserTabbar(res.data.type); - uni.setStorageSync('roleType', res.data.type); - setCustomerId(res.data.customerid); - uni.hideLoading(); - //璺宠浆椤甸潰 - this.$nextTick(() => { - redirectHome(); + this.$reqGet('getUserEntity') + .then(res => { + this.$u.toast('鎭枩鎮紝鐧诲綍鎴愬姛锛�'); + this.setUserTabbar(res.data.type); + uni.setStorageSync('roleType', res.data.type); + setCustomerId(res.data.customerid); + uni.hideLoading(); + //璺宠浆椤甸潰 + this.$nextTick(() => { + redirectHome(); + }); + }) + .catch(err => { + this.$u.toast('鐧诲綍寮傚父锛�'); + console.log(err); }); - }).catch(err=>{ - this.$u.toast('鐧诲綍寮傚父锛�'); - console.log(err); - }); } else { uni.hideLoading(); this.$u.toast(res.msg); -- Gitblit v1.9.1