From 38c39e193006f51b97c1605f4fdb8527b37feb29 Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Thu, 20 Feb 2025 15:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/components/public/editor/editor.vue | 8 +++++--- jiuyi2/pages/release/commodity.vue | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/jiuyi2/components/public/editor/editor.vue b/jiuyi2/components/public/editor/editor.vue index 5fe46120..94e059e3 100644 --- a/jiuyi2/components/public/editor/editor.vue +++ b/jiuyi2/components/public/editor/editor.vue @@ -16,6 +16,8 @@ const { proxy } = getCurrentInstance() + + const emits = defineEmits(['update:modelValue']); // 编辑器内容 const formats = reactive({}) // 编辑器上下文对象 @@ -57,7 +59,6 @@ * @param {Object} event */ function handleEditor(event) { - console.log('format', event.target.dataset) let { name, value @@ -220,8 +221,9 @@ <!-- 内容 --> <view class="main"> - <editor id="editor" class="ql-container" placeholder="在此输入产品详情" showImgSize showImgToolbar showImgResize - @statuschange="onStatusChange" @ready="onEditorReady"> + <editor id="editor" class="ql-container" placeholder="在此输入产品详情" showImgSize + showImgToolbar showImgResize @statuschange="onStatusChange" @ready="onEditorReady" + @input="$emit('update:modelValue', $event.target.value)"> </editor> </view> </view> diff --git a/jiuyi2/pages/release/commodity.vue b/jiuyi2/pages/release/commodity.vue index 82f3559a..b212da98 100644 --- a/jiuyi2/pages/release/commodity.vue +++ b/jiuyi2/pages/release/commodity.vue @@ -327,7 +327,7 @@ </view> <view class="main area editor"> - <editorArea /> + <!-- <editorArea v-model="form.infoRichText" /> --> </view> </view>