From 10028cf5007e39c0afa215ae096bdd0eb6393b72 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 23 Apr 2024 19:24:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=A4=A7=E5=9C=A8=E7=BA=BF=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E8=87=AA=E5=AE=9A=E4=B9=89=E6=BA=90=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E5=A4=A7=E5=B0=8F=E9=99=90=E5=88=B6=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=88#1857=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + .../views/Setting/components/UserApiOnlineImportModal.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index c0b19f5e..9172bf7d 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -5,6 +5,7 @@ ### 修复 - 修复存在多级弹窗时的背景显示问题 +- 增大在线导入自定义源文件的大小限制问题(#1857) ### 变更 diff --git a/src/renderer/views/Setting/components/UserApiOnlineImportModal.vue b/src/renderer/views/Setting/components/UserApiOnlineImportModal.vue index 703f6d35..48b49fc6 100644 --- a/src/renderer/views/Setting/components/UserApiOnlineImportModal.vue +++ b/src/renderer/views/Setting/components/UserApiOnlineImportModal.vue @@ -69,7 +69,7 @@ export default { this.disabled = false this.btnText = this.$t('user_api_import_online__input_confirm') } - if (script.length > 90000) { + if (script.length > 3_000_000) { void dialog(this.$t('user_api_import__failed', { message: 'Too large script' })) return }