|
@@ -122,7 +122,13 @@ export default {
|
|
|
_this.form.password = '';
|
|
|
}
|
|
|
uni.setStorageSync('loginTimeOut', 'NO');
|
|
|
- _this.toMain();
|
|
|
+ if(res.data.auth_user.mustChangePwd == 0){
|
|
|
+ _this.toMain();
|
|
|
+ }else{
|
|
|
+ uni.reLaunch({
|
|
|
+ url: '/pages/userCenter/changePwd'
|
|
|
+ })
|
|
|
+ }
|
|
|
} else {
|
|
|
uni.showToast({ icon: 'none', title: res.message });
|
|
|
}
|