|
@@ -68,11 +68,12 @@ export default {
|
|
wx.setStorageSync('phone', res.data.phone);
|
|
wx.setStorageSync('phone', res.data.phone);
|
|
wx.setStorageSync('userId', res.data.userId);
|
|
wx.setStorageSync('userId', res.data.userId);
|
|
wx.removeStorageSync('openid');
|
|
wx.removeStorageSync('openid');
|
|
- if (this.path === '/pages/index/main' || this.lanuch) {
|
|
|
|
- wx.reLaunch({ url: this.path });
|
|
|
|
- } else {
|
|
|
|
- wx.redirectTo({ url: this.path });
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.path === '/pages/index/main' || this.lanuch) {
|
|
|
|
+ // wx.reLaunch({ url: this.path }); // 关闭所有页面,打开到应用内的某个页面
|
|
|
|
+ // } else {
|
|
|
|
+ // wx.redirectTo({ url: this.path }); // 关闭当前页面,跳转到应用内的某个页面
|
|
|
|
+ // }
|
|
|
|
+ wx.reLaunch({ url: '/pages/index/main' }) // 关闭所有页面,打开到应用内的某个页面
|
|
} else {
|
|
} else {
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: res.message,
|
|
title: res.message,
|