diff --git a/mall4v/src/components/tiny-mce/index.vue b/mall4v/src/components/tiny-mce/index.vue index 7fdfd51..db38c89 100644 --- a/mall4v/src/components/tiny-mce/index.vue +++ b/mall4v/src/components/tiny-mce/index.vue @@ -208,7 +208,9 @@ export default { } }, setContent (value) { - window.tinymce.get(this.tinymceId).setContent(value) + if (window.tinymce) { + window.tinymce.get(this.tinymceId).setContent(value) + } }, getContent () { window.tinymce.get(this.tinymceId).getContent()