Przeglądaj źródła

协议页面 修复空格不显示bug

DESKTOP-SVI9JE1\muzen 2 lat temu
rodzic
commit
ffbdf06297
1 zmienionych plików z 14 dodań i 2 usunięć
  1. 14 2
      src/pages/agreement/index.vue

+ 14 - 2
src/pages/agreement/index.vue

@@ -1,6 +1,7 @@
 <template>
   <view class='app-container'>
     <rich-text :nodes="form.content" />
+    <!-- <u-parse id="content" ref="content" :content="form.content" :endHandler="get" /> -->
   </view>
 </template>
 
@@ -25,7 +26,18 @@ export default {
           this.form = res.data.data
         }
       })
-    }
+    },
+    // get(e) {
+    //   if (e.attr.class === 'ql-audio') {
+    //     e.attr.src = 'https://music-play.oss-cn-shenzhen.aliyuncs.com/backOss/file/a7e2c01610f64b49881556767f90ca63.mp3'
+    //   }
+    // }
   }
 }
-</script>
+</script>
+
+<style lang="scss" scoped>
+p {
+  white-space: pre-wrap;
+}
+</style>