优化代码
This commit is contained in:
1 parent
e3b7c63e5a
commit
cc603cb158
5 files changed
+43
-6
No files matched your search
@@ -172,10 +172,10 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
hasFamily() {
|
||||
if (!this.$store || !this.$store.getters) {
|
||||
if (!this.$store || !this.$store.state) {
|
||||
return false
|
||||
}
|
||||
return this.$store.getters.hasFamily || false
|
||||
return this.$store.state.family.familyId ? true :false
|
||||
},
|
||||
userName() {
|
||||
if (!this.$store || !this.$store.state || !this.$store.state.user || !this.$store.state.user.userInfo) {
|
||||
|
||||
Reference in new issue
Block a user