Browse Source

主题色容错处理

zq 1 day ago
parent
commit
613348f89f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/book/courseware/preview/components/fill/FillPreview.vue

+ 1 - 1
src/views/book/courseware/preview/components/fill/FillPreview.vue

@@ -6,7 +6,7 @@
     <div class="main" :style="getMainStyle()">
       <AudioFill
         v-if="data.audio_file_id.length > 0"
-        :color="data.unified_attrib.topic_color"
+        :color="data.unified_attrib?.topic_color"
         :file-id="data.audio_file_id"
       />
       <div class="fill-wrapper">