🐛 fix(anno): 处理 banner 为 “” 的情况

This commit is contained in:
BTMuli
2023-04-12 17:11:53 +08:00
parent af0a5198b6
commit 1fcf47a390
2 changed files with 5 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
<div class="anno-subtitle">
{{ annoData.subtitle }}
</div>
<img :src="annoData.banner" alt="cover" class="anno-img">
<img v-if="annoData.banner !== ''" :src="annoData.banner" alt="cover" class="anno-img">
<div class="anno-content" v-html="annoHtml" />
</div>
</template>