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: {