From 4544cb7d951dc6d0edc11615863213977c5217f1 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 30 Aug 2023 10:10:54 +0800 Subject: [PATCH] fix --- package-lock.json | 31 +- package.json | 2 +- src/components/quill/index.vue | 471 ++++++++++++++++++------------- src/pages/product/list/index.vue | 13 +- src/pages/product/show/index.vue | 66 ++--- src/setting.js | 2 +- 6 files changed, 320 insertions(+), 265 deletions(-) diff --git a/package-lock.json b/package-lock.json index 42b9605..b703907 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3435,6 +3435,11 @@ "integrity": "sha512-MsCAG1z9lPdoO/IUMLSBWBSVxVtJ1395VGIQ+Fc2gNdkQ1hNDnQdw3YhA71WJCBW1vdwA0cAnk/DnW6bqoEUYg==", "dev": true }, + "cssfilter": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/cssfilter/-/cssfilter-0.0.10.tgz", + "integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw==" + }, "cssnano": { "version": "4.1.10", "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-4.1.10.tgz", @@ -6592,12 +6597,8 @@ "highlight.js": { "version": "9.16.2", "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.16.2.tgz", - "integrity": "sha512-feMUrVLZvjy0oC7FVJQcSQRqbBq9kwqnYE4+Kj9ZjbHh3g+BisiPgF49NyQbVLNdrL/qqZr3Ca9yOKwgn2i/tw==" - }, - "highlight.js-async-webpack": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/highlight.js-async-webpack/-/highlight.js-async-webpack-1.0.4.tgz", - "integrity": "sha1-wGtnv5nwSQRdYrdW5YVbCRLsYWw=" + "integrity": "sha512-feMUrVLZvjy0oC7FVJQcSQRqbBq9kwqnYE4+Kj9ZjbHh3g+BisiPgF49NyQbVLNdrL/qqZr3Ca9yOKwgn2i/tw==", + "dev": true }, "hmac-drbg": { "version": "1.0.1", @@ -7993,12 +7994,11 @@ } }, "mavon-editor": { - "version": "2.7.7", - "resolved": "https://registry.npmjs.org/mavon-editor/-/mavon-editor-2.7.7.tgz", - "integrity": "sha512-lXnYe+dztKepbv8bi2nedRqG/AwyUDF8gmkv9lHD3fpVJ1+pzAS6YILRIryKCvO9qPIOPEThHsda2DxtlzRsZA==", + "version": "2.10.4", + "resolved": "https://registry.npmjs.org/mavon-editor/-/mavon-editor-2.10.4.tgz", + "integrity": "sha512-CFsBLkgt/KZBDg+SJYe2fyYv4zClY149PiwpH0rDAiiP4ae1XNs0GC8nBsoTeipsHcebDLN1QMkt3bUsnMDjQw==", "requires": { - "highlight.js": "^9.11.0", - "highlight.js-async-webpack": "^1.0.4" + "xss": "^1.0.6" } }, "md5.js": { @@ -13304,6 +13304,15 @@ "async-limiter": "~1.0.0" } }, + "xss": { + "version": "1.0.14", + "resolved": "https://registry.npmjs.org/xss/-/xss-1.0.14.tgz", + "integrity": "sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==", + "requires": { + "commander": "^2.20.3", + "cssfilter": "0.0.10" + } + }, "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", diff --git a/package.json b/package.json index 8606595..836d61f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "element-theme": "^2.0.1", "element-ui": "^2.13.0", "js-cookie": "^2.2.1", - "mavon-editor": "^2.6.17", + "mavon-editor": "^2.10.4", "postcss-px2rem": "^0.3.0", "px2rem-loader": "^0.1.9", "sortablejs": "^1.14.0", diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue index db18e66..160d334 100644 --- a/src/components/quill/index.vue +++ b/src/components/quill/index.vue @@ -1,17 +1,38 @@ diff --git a/src/pages/product/list/index.vue b/src/pages/product/list/index.vue index 87e9126..733d2af 100644 --- a/src/pages/product/list/index.vue +++ b/src/pages/product/list/index.vue @@ -1,14 +1,13 @@