Эх сурвалжийг харах

fix: 修复设计器标题和logo,自定义配置传入空字符串时,使用默认值的情况,只有传入null或undefined时,再使用默认值

wu.jian2 1 жил өмнө
parent
commit
195d5c2c02

+ 3 - 3
data-room-ui/packages/Layout/BigScreenHomeLayout/index.vue

@@ -6,7 +6,7 @@
           class="logo"
           :src="logo"
         >
-        <span>{{ title || 'GCPAAS大屏设计器' }}</span>
+        <span>{{ title }}</span>
       </div>
 
       <div class="big-screen-nav-container">
@@ -53,10 +53,10 @@ export default {
   computed: {
     title () {
       if (this.$route.query.edit) return '大屏设计器'
-      return window?.BS_CONFIG?.starter?.title
+      return window?.BS_CONFIG?.starter?.title ?? 'GCPAAS大屏设计器'
     },
     logo () {
-      return window?.BS_CONFIG?.starter?.logo || require('./images/logo.png')
+      return window?.BS_CONFIG?.starter?.logo ?? require('./images/logo.png')
     },
     tabList () {
       if (this.$route.query.edit) {