1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 21:30:14 +08:00

Fix tinymce component input watch wrong

Fix tinymce component input watch wrong
This commit is contained in:
2018-04-29 21:55:22 +08:00 committed by GitHub
commit 3a1e103ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,8 @@ export default {
},
watch: {
value(val) {
if (!this.hasChange && this.hasInit) {
if (val == null) {val = ''}
if (this.hasInit) {
this.$nextTick(() => window.tinymce.get(this.tinymceId).setContent(val))
}
}