解决方法
@H_404_0@v-model 的值只能是一个变量,是无法应用 filter 的。如果需要应用 filter:v-model="msgFilteredHTML" export default { ... computed: { msgFilteredHTML: { get() { return this.filterHTML(this.msg) }, set(val) { this.msg = val } } } }
v-model="msgFilteredHTML" export default { ... computed: { msgFilteredHTML: { get() { return this.filterHTML(this.msg) }, set(val) { this.msg = val } } } }