From f4fe5539a16c9e803cbaf876b5537e1072aee1b3 Mon Sep 17 00:00:00 2001 From: gaoxq <376340421@qq.com> Date: Sun, 21 Dec 2025 22:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BE=85=E5=8A=9E=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/config/application.yml | 26 +++++++++++++------ .../workbench/components/myfiles/index.vue | 1 + 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/web-api/src/main/resources/config/application.yml b/web-api/src/main/resources/config/application.yml index 835f6685..6b50c745 100644 --- a/web-api/src/main/resources/config/application.yml +++ b/web-api/src/main/resources/config/application.yml @@ -4,7 +4,7 @@ # 产品或项目名称、软件开发公司名称 productName: My-Worker -companyName: c +companyName: me # 产品版本、版权年份 productVersion: V5.14 @@ -21,16 +21,14 @@ apiMode: true #======================================# server: - port: 8980 servlet: context-path: /js register-default-servlet: false - # encoding.enabled: true tomcat: uri-encoding: UTF-8 # 表单请求数据的最大大小 - max-http-form-post-size: 200MB + max-http-form-post-size: 500MB # 客户端发送请求参数个数限制 max-parameter-count: 10000 # 文件上传的表单请求参数个数限制 @@ -43,6 +41,8 @@ server: threads: max: 200 min-spare: 10 + connection-timeout: 600000 + max-swallow-size: -1 # 当 Nginx 为 https,tomcat 为 http 时,设置该选项为 true schemeHttps: false @@ -516,13 +516,13 @@ session: # 注意:如果超时超过30m,你还需要同步修改当前配置文件的属性:j2cache.caffeine.region.sessionCache 超时时间,大于这个值。 # 游客会话超时时间:只访问了系统,但未登录系统的用户为游客,游客默认超时时间为3分钟,如:未登录系统时的图片验证码有效时间。 - sessionTimeout: 180000 + sessionTimeout: 3600000 # 登录系统后的用户超时时间(不明确 param_deviceType 参数的,默认设备为 pc 登录) - pcSessionTimeout: 1800000 + pcSessionTimeout: 3600000 # # 手机APP设备会话超时参数设置,登录请求参数加 param_deviceType=mobileApp 时有效,一般情况无需设置 -# mobileAppSessionTimeout: 1800000 +# mobileAppSessionTimeout: 3600000 # # # 定时清理失效会话,清理用户直接关闭浏览器造成的孤立会话(设置为 0 关闭,微服务下只开启 core 即可) # sessionTimeoutClean: 1200000 @@ -709,8 +709,18 @@ file: # # 文件上传根路径,设置路径中不允许包含“userfiles”,在指定目录中系统会自动创建userfiles目录,如果不设置默认为contextPath路径 baseDir: /ogsapp/files maxFileSize: '500*1024*1024' - + # 是否启用秒传 + checkmd5: true + # 是否开启分片上传 + chunked: true + # 分片大小,单位字节(50M) + chunkSize: '50*1024*1024' + # 最大上传线程数 + threads: 3 + # 是否启用检查点(支持断点续传,上传) + checkpoint: true isFileStreamDown: true + # # # 上传文件的相对路径(支持:yyyy、MM、dd、HH、mm、ss、E、bizType、corpCode、userCode、userType、userCache中的key) # uploadPath: '{yyyy}{MM}/' diff --git a/web-vue/packages/core/layouts/views/desktop/workbench/components/myfiles/index.vue b/web-vue/packages/core/layouts/views/desktop/workbench/components/myfiles/index.vue index f6b6aa5a..8bbb1efb 100644 --- a/web-vue/packages/core/layouts/views/desktop/workbench/components/myfiles/index.vue +++ b/web-vue/packages/core/layouts/views/desktop/workbench/components/myfiles/index.vue @@ -1039,6 +1039,7 @@ const handleFolderModalClose = () => { }; async function downloadFiles(myFiles: BizMyfiles) { + message.info("文件已开始下载..."); const { ctxAdminPath } = useGlobSetting(); await downloadByUrl({ url: ctxAdminPath + '/biz/myfiles/downloadFile',