Handy_Cao 10 bulan lalu
induk
melakukan
0436e63916
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      src/packages/mobile/views/pricing/trade/images/Index.vue

+ 3 - 2
src/packages/mobile/views/pricing/trade/images/Index.vue

@@ -1,6 +1,6 @@
 <template>
     <app-view class="g-detail" v-if="record" style="background-color: #fff;margin-top: 5px;">
-        <p style="margin: 10px;" v-html="record.collectiondesc"></p>
+        <HtmlContainer class="content" :context="formatHtmlString(record.collectiondesc)" v-if="record.collectiondesc" />
         <p v-if="record.pictureurl">
             <img :src="getFileUrl(record.pictureurl)" alt="" />
         </p>
@@ -9,7 +9,8 @@
 
 <script lang="ts" setup>
 import { PropType } from 'vue'
-import { getFileUrl } from '@/filters'
+import { getFileUrl, formatHtmlString } from '@/filters'
+import HtmlContainer from '@mobile/components/base/html-container/index.vue'
 
 defineProps({
     record: {