From e865b33bd96e30f48710d631f11937948b266c4e Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Wed, 12 Feb 2025 12:39:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E7=A7=BB=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84emit=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/WangEditor/index.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/WangEditor/index.vue b/src/components/WangEditor/index.vue index 883e23c5..bfb6577b 100644 --- a/src/components/WangEditor/index.vue +++ b/src/components/WangEditor/index.vue @@ -37,7 +37,7 @@ import { IToolbarConfig, IEditorConfig } from "@wangeditor-next/editor"; import FileAPI from "@/api/file"; // 上传图片回调函数类型 -type InsertFnType = (url: string, alt: string, href: string) => void; +type InsertFnType = (_url: string, _alt: string, _href: string) => void; defineProps({ height: { @@ -45,9 +45,6 @@ defineProps({ default: "500px", }, }); - -const emit = defineEmits(["update:modelValue"]); - // 双向绑定 const modelValue = defineModel("modelValue", { type: String,