Browse Source

用户企业信息,由企业名称改为企业uu判断是否显示。

yangc 8 years ago
parent
commit
28e79559f5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/default/Header.vue

+ 2 - 2
components/default/Header.vue

@@ -23,7 +23,7 @@
                 </li>
                 <li class="menu-item"
                     v-for="en in user.data.enterprises"
-                    v-if="showEnterprises && en.enName!=enterprise.enName">
+                    v-if="showEnterprises && en.uu!=enterprise.uu">
                   <a @click="switchEnterprise(en)" :title="en.enName">{{ en.enName }}</a>
                 </li>
                 <li class="menu-item"  v-if="showEnterprises">
@@ -104,7 +104,7 @@
         this.toggleEnterprises()
         this.$http.get(`/user/authentication/${en.uu}`).then(() => {
           this.$store.dispatch('loadUserInfo')
-          window.location.reload()
+//          window.location.reload()
         })
       }
     },