|
@@ -137,6 +137,16 @@ export default {
|
|
|
if (openid && openid !== 'undefined') {
|
|
|
this.$store.commit('SET_OPENID', openid);
|
|
|
} */
|
|
|
+ if (!openid) {
|
|
|
+ // 当进入其他页面时,需要先打开路由展示
|
|
|
+ this.isInit = true;
|
|
|
+ // 前往授权页面
|
|
|
+ this.$router.replace({
|
|
|
+ path: '/openWx',
|
|
|
+ query: query,
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!kipAccessToken) {
|
|
|
/* if (!openid) {
|
|
|
// 当进入其他页面时,需要先打开路由展示
|
|
@@ -245,6 +255,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
/* 微信小程序 webview 配置 */
|
|
|
+ console.log(258, uni.getStorageSync('pageId'));
|
|
|
if (
|
|
|
!uni.getStorageSync('pageId') ||
|
|
|
uni.getStorageSync('pageId') === 'undefined'
|