wangxia 2 years ago
commit 6fae47cb51

@ -144,7 +144,7 @@
</svg> </svg>
<!-- </div> --> <!-- </div> -->
<div v-if="!isLogin"> <div v-if="!isLogin">
<router-link to="/list" style="display: inline-block; width: 100%">注册/登录</router-link> <router-link to="/login" style="display: inline-block; width: 100%">注册/登录</router-link>
</div> </div>
<div v-else> <div v-else>
<router-link to="/list" style="display: inline-block; width: 100%">进入稻田</router-link> <router-link to="/list" style="display: inline-block; width: 100%">进入稻田</router-link>
@ -367,7 +367,7 @@ export default {
} else { } else {
this.routertitleindex = 7 this.routertitleindex = 7
} }
if (to.fullPath == '/login') { if (to.fullPath == '/login' || !localStorage.getItem("LOGIN_DATA")) {
this.loginPage = true this.loginPage = true
this.isLogin = false this.isLogin = false
} else { } else {

Loading…
Cancel
Save