From d37bf55e27b7edb61037bccde6cabeda1ddec6b7 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 30 七月 2024 15:54:22 +0800
Subject: [PATCH] git ch
---
company/src/components/common/CommonHeader.vue | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/company/src/components/common/CommonHeader.vue b/company/src/components/common/CommonHeader.vue
index 90aa22d..a5705fc 100644
--- a/company/src/components/common/CommonHeader.vue
+++ b/company/src/components/common/CommonHeader.vue
@@ -101,14 +101,13 @@
if (userInfo == null) {
return ''
}
- if(userInfo.type === 1){
- if (userInfo.company != null && userInfo.company.name.trim().length > 0) {
+ if (userInfo.type === 1 && userInfo.company != null && userInfo.company.name.trim().length > 0) {
+ if (userInfo.company.username === userInfo.username){
return userInfo.company.name
}
- }else{
- if (userInfo.realname != null && userInfo.realname.trim().length > 0) {
- return userInfo.realname
- }
+ }
+ if (userInfo.realname != null && userInfo.realname.trim().length > 0) {
+ return userInfo.realname
}
return userInfo.username
}
--
Gitblit v1.9.3