From 69e28b06eecddfded3123164a6220b1f0941f6aa Mon Sep 17 00:00:00 2001 From: ronger Date: Mon, 17 Jan 2022 10:36:35 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E5=8E=BB=E9=99=A4=E4=BD=9C=E5=93=81?= =?UTF-8?q?=E9=9B=86/=E4=B8=93=E9=A2=98/=E6=A0=87=E7=AD=BE=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E7=BC=96=E8=BE=91=E5=99=A8=E6=96=87=E4=BB=B6=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/admin/tag/post/_tag_id.vue | 9 +-------- pages/admin/topic/post/_topic_id.vue | 9 +-------- pages/portfolio/post/_portfolio_id.vue | 9 +-------- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/pages/admin/tag/post/_tag_id.vue b/pages/admin/tag/post/_tag_id.vue index 3ccb0f5..e122c07 100644 --- a/pages/admin/tag/post/_tag_id.vue +++ b/pages/admin/tag/post/_tag_id.vue @@ -187,7 +187,7 @@ export default { 'insert-before', 'insert-after', '|', - 'upload', + // 'upload', // 'record', 'table', '|', @@ -241,13 +241,6 @@ export default { // Vue.Vditor.highlightRender({style: 'github'}, element, this.contentEditor); } }, - upload: { - max: 10 * 1024 * 1024, - url: this.tokenURL.URL, - linkToImgUrl: this.tokenURL.linkToImageURL, - token: this.tokenURL.token, - filename: name => name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').replace(/[\?\\/:|<>\*\[\]\(\)\$%\{\}@~]/g, '').replace('/\\s/g', '') - }, height: data.height, counter: 102400, resize: { diff --git a/pages/admin/topic/post/_topic_id.vue b/pages/admin/topic/post/_topic_id.vue index 5659629..2239a1e 100644 --- a/pages/admin/topic/post/_topic_id.vue +++ b/pages/admin/topic/post/_topic_id.vue @@ -189,7 +189,7 @@ export default { 'insert-before', 'insert-after', '|', - 'upload', + // 'upload', // 'record', 'table', '|', @@ -243,13 +243,6 @@ export default { // Vue.Vditor.highlightRender({style: 'github'}, element, this.contentEditor); } }, - upload: { - max: 10 * 1024 * 1024, - url: this.tokenURL.URL, - linkToImgUrl: this.tokenURL.linkToImageURL, - token: this.tokenURL.token, - filename: name => name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').replace(/[\?\\/:|<>\*\[\]\(\)\$%\{\}@~]/g, '').replace('/\\s/g', '') - }, height: data.height, counter: 102400, resize: { diff --git a/pages/portfolio/post/_portfolio_id.vue b/pages/portfolio/post/_portfolio_id.vue index 73544a8..0502581 100644 --- a/pages/portfolio/post/_portfolio_id.vue +++ b/pages/portfolio/post/_portfolio_id.vue @@ -194,7 +194,7 @@ export default { 'insert-before', 'insert-after', '|', - 'upload', + // 'upload', // 'record', 'table', '|', @@ -243,13 +243,6 @@ export default { // Vue.Vditor.highlightRender({style: 'github'}, element, this.contentEditor); } }, - upload: { - max: 10 * 1024 * 1024, - url: this.tokenURL.URL, - linkToImgUrl: this.tokenURL.linkToImageURL, - token: this.tokenURL.token, - filename: name => name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').replace(/[\?\\/:|<>\*\[\]\(\)\$%\{\}@~]/g, '').replace('/\\s/g', '') - }, height: data.height, counter: 102400, resize: {