From fe727122bf336d6bad73ffb5bd133a16731d6746 Mon Sep 17 00:00:00 2001 From: peng-xiao-shuai <1612565136@qq.com> Date: Mon, 29 Apr 2024 15:25:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=8C=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tiny-mce/index.vue | 4 ++-- src/views/modules/rich-text/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/tiny-mce/index.vue b/src/components/tiny-mce/index.vue index e7992de..102f646 100644 --- a/src/components/tiny-mce/index.vue +++ b/src/components/tiny-mce/index.vue @@ -81,12 +81,12 @@ export default defineComponent({ function getContentFun() { context.emit( 'update:modelValue', - window.tinymce.get(tinymceId).getContent() + window.tinymce.get(tinymceId).getContent(), ) } function init() { - window.tinymce.init({ + window.tinymce?.init({ selector: `#${tinymceId}`, branding: false, // 去水印 language_url: '/static/zh_CN.js', //语言包路径地址 diff --git a/src/views/modules/rich-text/index.vue b/src/views/modules/rich-text/index.vue index b6dfdac..bbb787b 100644 --- a/src/views/modules/rich-text/index.vue +++ b/src/views/modules/rich-text/index.vue @@ -68,7 +68,7 @@ export default defineComponent({ function getData() { richTextFun().then((response) => { - myValue.value = response.data + myValue.value = response.data.data }) } function getTinyMceFun() {