Commit faf2e46d authored by jiaoyahui's avatar jiaoyahui

更改登录和未登录的图标头像,通过isReg

parent f77b9104
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</div> </div>
<div class="Login"> <div class="Login">
<div class="N_name">{{nickName}}</div> <div class="N_name" v-if="Token_truetwo">{{nickName}}</div>
<span v-if="Token_true"><span @click="login_a">登录</span><span>/注册</span></span> <span v-if="Token_true"><span @click="login_a">登录</span><span>/注册</span></span>
<div v-if="Token_truetwo">您已成功登录 </div> <div v-if="Token_truetwo">您已成功登录 </div>
<div v-if="Token_true">请您先登录 </div> <div v-if="Token_true">请您先登录 </div>
...@@ -109,8 +109,9 @@ export default { ...@@ -109,8 +109,9 @@ export default {
}, },
mounted () { mounted () {
// let token=sessionStorage.getItem("token") // let token=sessionStorage.getItem("token")
// console.log(token,'===oooo') // console.log(token,'===oooo')
if(!sessionStorage.getItem('token')){ // sessionStorage.setItem("isReg")
if(!sessionStorage.getItem('isReg')){
this.Token_true=true; this.Token_true=true;
this.Token_truetwo=false this.Token_truetwo=false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment