|
@@ -112,13 +112,10 @@ export default {
|
|
|
}
|
|
|
if (!openid) {
|
|
|
// 如果是微信小程序入口,先把 传过来的 token 和 pageId 保存下来
|
|
|
- if (platform === 'miniprogram') {
|
|
|
+ if (platform === 'miniprogram' && !uni.getStorageSync('pageId')) {
|
|
|
const { pageId, token } = query;
|
|
|
- console.log(117, query);
|
|
|
- console.log(118, window.location.href);
|
|
|
uni.setStorageSync('pageId', pageId);
|
|
|
uni.setStorageSync('token', token);
|
|
|
- return;
|
|
|
}
|
|
|
// 当进入其他页面时,需要先打开路由展示
|
|
|
this.isInit = true;
|