k94314517
2025-06-25 f6722e13ba28cd292c162df9292bb3418ba12bec
company/src/components/common/CommonHeader.vue
@@ -114,7 +114,9 @@
  },
  created () {
    document.title=this.systemTitle
    this.setFindByCompanyId(this.userInfo.companyId)
    if (this.userInfo.companyId) {
      this.setFindByCompanyId(this.userInfo.companyId)
    }
  },
  computed: {
    ...mapState(['menuData', 'userInfo']),
@@ -153,9 +155,9 @@
        })
    },
    setFindByCompanyId(companyId) {
      if (this.userInfo.type !== 1) return
      findByCompanyId(companyId)
        .then(res => {
          console.log(res)
          this.info = res
        })
    },
@@ -212,7 +214,11 @@
  }
}
</script>
<style>
  .el-dropdown-menu {
    width: 240px !important;
  }
</style>
<style scoped lang="scss">
@import "@/assets/style/variables.scss";
.common-header {