hookehuyr

fix 页眉文字类型时,显示问题

1 <!-- 1 <!--
2 * @Date: 2022-07-18 10:22:22 2 * @Date: 2022-07-18 10:22:22
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-01-17 15:27:57 4 + * @LastEditTime: 2023-01-17 15:52:03
5 * @FilePath: /data-table/src/views/index.vue 5 * @FilePath: /data-table/src/views/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
28 /></van-swipe-item> 28 /></van-swipe-item>
29 </van-swipe> 29 </van-swipe>
30 </template> 30 </template>
31 + <div v-if="PHeader.type === 'text'" style="padding: 1rem; font-weight: bold;">{{ PHeader.banner }}</div>
31 </template> 32 </template>
32 <div v-if="PHeader.label" class="table-title">{{ PHeader.label }}</div> 33 <div v-if="PHeader.label" class="table-title">{{ PHeader.label }}</div>
33 <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" /> 34 <div v-if="PHeader.description" class="table-desc" v-html="PHeader.description" />
...@@ -205,6 +206,7 @@ onMounted(async () => { ...@@ -205,6 +206,7 @@ onMounted(async () => {
205 description: page_header.description, 206 description: page_header.description,
206 type: page_header.banner_type, 207 type: page_header.banner_type,
207 cover: page_header.banner_url, 208 cover: page_header.banner_url,
209 + banner: page_header.banner,
208 visible: !page_header.invisible, 210 visible: !page_header.invisible,
209 }; 211 };
210 } 212 }
......