|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<!-- <div @click="send">send</div>-->
|
|
<!-- <div @click="send">send</div>-->
|
|
- <router-view v-if="isInit"></router-view>
|
|
|
|
|
|
+ <router-view></router-view>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -64,6 +64,8 @@ export default {
|
|
// 如果用户没有登录的话,我们需要让用户完成授权拿到 openid
|
|
// 如果用户没有登录的话,我们需要让用户完成授权拿到 openid
|
|
const openid = uni.getStorageSync('openid')
|
|
const openid = uni.getStorageSync('openid')
|
|
if (!openid) {
|
|
if (!openid) {
|
|
|
|
+ // 当进入其他页面时,需要先打开路由展示
|
|
|
|
+ this.isInit = true
|
|
// 前往授权页面
|
|
// 前往授权页面
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
path: '/openWx',
|
|
path: '/openWx',
|