From 241590dedb9d7329a422dd1b00f9ae276a0481ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AF=9B=E9=B9=8F?= <729164035@qq.com> Date: Sun, 9 Nov 2025 13:36:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MangoServer/src/settings/__init__.py | 6 +- .../index/components/AutomationStats.vue | 68 ++++++---- mango-console/src/views/index/main.vue | 116 +----------------- .../src/views/uitest/case/details/index.vue | 10 +- 4 files changed, 56 insertions(+), 144 deletions(-) diff --git a/MangoServer/src/settings/__init__.py b/MangoServer/src/settings/__init__.py index 81704844..dc059004 100644 --- a/MangoServer/src/settings/__init__.py +++ b/MangoServer/src/settings/__init__.py @@ -126,10 +126,10 @@ if not IS_SQLITE: 'OPTIONS': { 'charset': 'utf8mb4', 'connect_timeout': 5, # 连接超时时间 - 'init_command': 'SET SESSION sort_buffer_size=8 * 1024 * 1024', # 会话级设置 - 'isolation_level': 'READ COMMITTED', # 可选:事务隔离级别 + 'init_command': "SET SESSION wait_timeout=60, interactive_timeout=60, sort_buffer_size=2 * 1024 * 1024", + 'isolation_level': 'READ COMMITTED', }, - 'CONN_MAX_AGE': 60, # 连接最大存活时间(秒) + 'CONN_MAX_AGE': 60, # 这个设置是正确的 } } else: diff --git a/mango-console/src/views/index/components/AutomationStats.vue b/mango-console/src/views/index/components/AutomationStats.vue index bf2a867e..a05d2f2e 100644 --- a/mango-console/src/views/index/components/AutomationStats.vue +++ b/mango-console/src/views/index/components/AutomationStats.vue @@ -57,33 +57,49 @@ diff --git a/mango-console/src/views/index/main.vue b/mango-console/src/views/index/main.vue index acafc87e..c8be1982 100644 --- a/mango-console/src/views/index/main.vue +++ b/mango-console/src/views/index/main.vue @@ -11,11 +11,7 @@