Commit 0c883958 by 李伟康

提交

1 parent ac0f9a38
...@@ -17,7 +17,6 @@ import TRACK from './utils/track/Track' ...@@ -17,7 +17,6 @@ import TRACK from './utils/track/Track'
import '~/utils/share' import '~/utils/share'
App({ App({
onLaunch(options) { onLaunch(options) {
wx.$LoginStatus = true
getUpdateManager(); getUpdateManager();
/**挂载到wx对象 */ /**挂载到wx对象 */
wx.p = { wx.p = {
......
...@@ -88,8 +88,9 @@ class Router { ...@@ -88,8 +88,9 @@ class Router {
* @param {*} callBack true未登录 false已登录 * @param {*} callBack true未登录 false已登录
*/ */
async intercept(auto = true) { async intercept(auto = true) {
const authStatus = wx.$LoginStatus const authStatus = wx.$LoginStatus,
if (authStatus) { userInfo = wx.p.cache.userInfo.getUserInfo() || {}
if (!userInfo.phone || authStatus) {
if (auto) wx.navigateTo({ if (auto) wx.navigateTo({
url: '/pages/Login/Login', url: '/pages/Login/Login',
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!