import { common } from '../../../utils'; export const useIsToAuthPage = () => { // 判断小程序登录返回的wechatOpenid是否为null,null没有关注公众号,需要跳转授权页面进行授权处理 if (uni.getStorageSync('wechatOpenid') === null && getApp().globalData.officialAuthOn) { common.goToUrl(`/pages/st1/business/h5/h5?type=0`, { skipWay: 'redirectTo', }); return true; } return false; };