Browse Source

首页登录状态enName判空

yangc 7 years ago
parent
commit
2efc94d140
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/default/Header.vue

+ 1 - 1
components/default/Header.vue

@@ -91,7 +91,7 @@
         return this.$store.state.option.user
         return this.$store.state.option.user
       },
       },
       enterprise () {
       enterprise () {
-        return this.user.data.enterprise
+        return this.user.data.enterprise || {}
       },
       },
       url () {
       url () {
         return this.$store.state.option.url
         return this.$store.state.option.url