Browse Source

非登录不可以聊

master
453530270@qq.com 2 years ago
parent
commit
0b4fe8e65d
  1. 18
      src/components/CommonFooter.vue

18
src/components/CommonFooter.vue

@ -364,9 +364,10 @@ export default {
...mapState({ ...mapState({
appConfig: "appConfig", appConfig: "appConfig",
}), }),
isLogin() { // check login or not ?
return Boolean(localStorage.token); isLogin() {
}, return Boolean(localStorage.token);
},
// //
nativeLang() { nativeLang() {
let UALang; let UALang;
@ -436,8 +437,15 @@ export default {
}, },
// scbox // scbox
scbox(e){ scbox(e){
this.ispopup = ! this.ispopup // under login
console.log("dd",this.ispopup) if (this.isLogin) {
this.ispopup = ! this.ispopup
}else{
//
console.log("login fisrt!!")
this.$router.push({ path: '/sign-in' });
}
}, },
// close // close
closebox(){ closebox(){

Loading…
Cancel
Save