diff --git a/pages/login/index.js b/pages/login/index.js index 193cf1e..6b264ee 100644 --- a/pages/login/index.js +++ b/pages/login/index.js @@ -41,8 +41,8 @@ Page({ // }) // return // } - wx.redirectTo({ - url: '/pages/login/index', + wx.switchTab({ + url: '/pages/home/index', }) }, async getPrivacy() { diff --git a/pages/my/index.js b/pages/my/index.js index 8b8bcb9..21285ab 100644 --- a/pages/my/index.js +++ b/pages/my/index.js @@ -90,8 +90,8 @@ Page({ return; } wx.clearStorageSync() - wx.switchTab({ - url: '/pages/home/index', + wx.redirectTo({ + url: '/pages/login/index', }) }); },