From 8cb2a6a6484ddd16ef33696547a08a7dfafc421f Mon Sep 17 00:00:00 2001 From: yanwenlong Date: Fri, 1 Dec 2023 23:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E5=8F=AF=E8=B0=83=E6=95=B4=E5=9B=BE=E7=89=87=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/webpack.dev.conf.js | 4 +++ package.json | 1 + src/views/modules/book/yian-add-or-update.vue | 30 ++++++++++++------- src/views/modules/book/yian.vue | 8 ++++- 4 files changed, 32 insertions(+), 11 deletions(-) diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js index 167f21f..829e540 100644 --- a/build/webpack.dev.conf.js +++ b/build/webpack.dev.conf.js @@ -51,6 +51,10 @@ const devWebpackConfig = merge(baseWebpackConfig, { template: 'index.html', inject: true }), + new webpack.ProvidePlugin({ + 'window.Quill': 'quill/dist/quill.js', + 'Quill': 'quill/dist/quill.js' + }), ] }) diff --git a/package.json b/package.json index 9f3f8cd..30fd446 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "lodash": "4.17.5", "node-sass": "^6.0.1", "npm": "^6.9.0", + "quill-image-resize-module": "^3.0.0", "sass-loader": "6.0.6", "svg-sprite-loader": "3.7.3", "vue": "2.5.16", diff --git a/src/views/modules/book/yian-add-or-update.vue b/src/views/modules/book/yian-add-or-update.vue index 3f3a852..93e3bd4 100644 --- a/src/views/modules/book/yian-add-or-update.vue +++ b/src/views/modules/book/yian-add-or-update.vue @@ -1,6 +1,6 @@