1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 12:50:38 +08:00

Update index.vue

This commit is contained in:
Insua 2018-06-01 14:59:39 +08:00 committed by GitHub
parent e7a2bd7794
commit ef30356050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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