Browse Source

首页登录状态enName判空

yangc 7 năm trước cách đây
mục cha
commit
2efc94d140
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/default/Header.vue

+ 1 - 1
components/default/Header.vue

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