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,