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