通知公告并修改富文本为v-html

This commit is contained in:
熊丽君
2021-08-10 17:15:42 +08:00
parent b00f6bba18
commit 18ccebcd39
6 changed files with 354 additions and 52 deletions

View File

@ -40,7 +40,8 @@
</div>
<!-- <div v-html="formData.text"></div> -->
<div id="text">
<editor v-model="formData.text" :min-height="192" />
<!-- <editor v-model="formData.text" :min-height="192" /> -->
<div v-html="formData.text" />
</div>
</div>
</template>
@ -67,6 +68,16 @@ export default {
formData: {}
};
},
watch: {
formData: {
handler: function() {
this.$nextTick(() => {
this.formatRichText(this.formData.downloadUrl);
});
}
},
deep: true
},
computed: {
...mapGetters(['token'])
},