From 7062305c01d825d99640ab17285b50a9d4ae0837 Mon Sep 17 00:00:00 2001 From: GGJ <357021191@qq.com> Date: Sat, 12 Oct 2024 11:23:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9editor=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/echarts/MyEchartMap.vue | 2 +- src/components/wangEditor/index.vue | 9 ++++--- src/views/pqs/database/algorithm/index.vue | 27 +++++++++++++++++-- .../pqs/database/case/components/annex.vue | 24 ++++++++++++++++- src/views/pqs/database/case/index.vue | 27 +++++++++++++++++-- .../pqs/voltageSags/Region/severity/index.vue | 2 +- 6 files changed, 80 insertions(+), 11 deletions(-) diff --git a/src/components/echarts/MyEchartMap.vue b/src/components/echarts/MyEchartMap.vue index e196779d..124ae109 100644 --- a/src/components/echarts/MyEchartMap.vue +++ b/src/components/echarts/MyEchartMap.vue @@ -63,7 +63,7 @@ const GetEchar = async (name: string) => { legend: { orient: 'vertical', - left: 26, + left: 25, bottom: 40, itemWidth: 16, itemHeight: 16, diff --git a/src/components/wangEditor/index.vue b/src/components/wangEditor/index.vue index ea994c91..dcea6981 100644 --- a/src/components/wangEditor/index.vue +++ b/src/components/wangEditor/index.vue @@ -28,11 +28,11 @@ onMounted(() => { const toolbarConfig = { excludeKeys: ['fullScreen', 'emotion'] } -let sever = '/system-boot/file/upload' +let sever = '/api/system-boot/file/upload' // 本地加api -if (process.env.NODE_ENV === 'development') { - sever = '/api' + sever -} +// if (process.env.NODE_ENV === 'development') { +// sever = '/api' + sever +// } type InsertFnType = (url: string, alt: string, href: string) => void const editorConfig = { placeholder: '请输入内容...', @@ -40,6 +40,7 @@ const editorConfig = { uploadImage: { server: sever, fieldName: 'file', + maxFileSize: 10 * 1024 * 1024, compress: true, uploadFileName: 'file', withCredentials: true, diff --git a/src/views/pqs/database/algorithm/index.vue b/src/views/pqs/database/algorithm/index.vue index a345e903..a47037ed 100644 --- a/src/views/pqs/database/algorithm/index.vue +++ b/src/views/pqs/database/algorithm/index.vue @@ -28,7 +28,7 @@ - +