提交 93f8d968 authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 c3810565
...@@ -42,10 +42,20 @@ export default { ...@@ -42,10 +42,20 @@ export default {
computed: { computed: {
user() { user() {
return this.$store.state.user return this.$store.state.user
},
isLogin() {
return this.$store.state.isLogin
} }
}, },
methods: { methods: {
goPage(path) { goPage(path) {
if (!this.isLogin) {
this.$message({
message: `Sorry, we don't have your information`,
type: 'warning'
})
return
}
if (this.user.has_long) { if (this.user.has_long) {
this.$router.push({ path: path }) this.$router.push({ path: path })
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论