diff --git a/package.json b/package.json index ef37a1d..9834ff5 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,9 @@ "@element-plus/icons-vue": "2.3.2", "@highlightjs/vue-plugin": "2.1.2", "@iconify/vue": "^5.0.0", - "@vueup/vue-quill": "1.2.0", "@vueuse/core": "14.2.1", + "@wangeditor-next/editor": "5.6.50", + "@wangeditor-next/editor-for-vue": "5.1.14", "animate.css": "4.1.1", "await-to-js": "3.0.0", "axios": "1.13.6", @@ -73,9 +74,6 @@ "vitest": "4.0.18", "vue-tsc": "^3.2.5" }, - "overrides": { - "quill": "1.3.7" - }, "engines": { "node": ">=20.19.0", "npm": ">=8.19.0" diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index f21ef2e..9027027 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -1,37 +1,29 @@ - diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index badbe9d..a5594fb 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -86,7 +86,7 @@ - + @@ -185,9 +185,12 @@ const getList = async () => { }; /** 取消按钮 */ const cancel = () => { - reset(); dialog.visible = false; }; +/** 对话框关闭后重置 */ +const handleDialogClosed = () => { + reset(); +}; /** 表单重置 */ const reset = () => { form.value = { ...initFormData }; diff --git a/vite.config.ts b/vite.config.ts index 070846c..468fab4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -55,6 +55,7 @@ export default defineConfig(({ mode, command }) => { }, // 预编译 optimizeDeps: { + entries: ['src/**/*.vue'], include: [ 'vue', 'vue-router', @@ -63,9 +64,10 @@ export default defineConfig(({ mode, command }) => { '@vueuse/core', 'echarts', 'vue-i18n', - '@vueup/vue-quill', + '@wangeditor-next/editor', + '@wangeditor-next/editor-for-vue', 'image-conversion', - 'element-plus/es/components/**/css' + 'element-plus/es/components/**/style/css' ] } };