From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期四, 20 六月 2024 14:05:35 +0800 Subject: [PATCH] 提交一把 --- company/src/components/common/CommonHeader.vue | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/company/src/components/common/CommonHeader.vue b/company/src/components/common/CommonHeader.vue index 2e9798a..a5705fc 100644 --- a/company/src/components/common/CommonHeader.vue +++ b/company/src/components/common/CommonHeader.vue @@ -2,7 +2,7 @@ <div class="common-header"> <div class="header"> <div class="logo"> - <div>浜戞槗淇濆鎴锋湇鍔$郴缁�</div> + <div>{{systemTitle}}</div> <!-- <div class="title-en">Diagnosis of Intelligent Manufacturing Integrated Service Platfrom</div> --> </div> <div class="user"> @@ -55,6 +55,7 @@ }, data () { return { + systemTitle: process.env.VUE_APP_SYSTEM_TITLE, visible: { // 淇敼瀵嗙爜 changePwd: false @@ -85,6 +86,9 @@ } } }, + created () { + document.title=this.systemTitle + }, computed: { ...mapState(['menuData', 'userInfo']), title () { @@ -97,6 +101,11 @@ if (userInfo == null) { return '' } + if (userInfo.type === 1 && userInfo.company != null && userInfo.company.name.trim().length > 0) { + if (userInfo.company.username === userInfo.username){ + return userInfo.company.name + } + } if (userInfo.realname != null && userInfo.realname.trim().length > 0) { return userInfo.realname } -- Gitblit v1.9.3