通知公告并修改富文本为v-html
This commit is contained in:
@ -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'])
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user