Browse Source

no message

linwenxin 5 tháng trước cách đây
mục cha
commit
457deb4d4f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/head.vue

+ 1 - 1
src/components/head.vue

@@ -19,7 +19,7 @@
             ? userInfo.companyName
             : userInfo.type == 2
             ? '平台管理员'
-            : userInfo.adminWebsits.map(item => item.name).join(',')
+            : userInfo.adminWebsits?.[0]?.map(item => item.name)?.join(',') || ''
         }}
       </div>
       <div class="asright">{{ timeStr }}</div>