Commit 0c883958 by 李伟康

提交

1 parent ac0f9a38
......@@ -17,7 +17,6 @@ import TRACK from './utils/track/Track'
import '~/utils/share'
App({
onLaunch(options) {
wx.$LoginStatus = true
getUpdateManager();
/**挂载到wx对象 */
wx.p = {
......
......@@ -88,8 +88,9 @@ class Router {
* @param {*} callBack true未登录 false已登录
*/
async intercept(auto = true) {
const authStatus = wx.$LoginStatus
if (authStatus) {
const authStatus = wx.$LoginStatus,
userInfo = wx.p.cache.userInfo.getUserInfo() || {}
if (!userInfo.phone || authStatus) {
if (auto) wx.navigateTo({
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!