From 3f91a47927818ff43b6dbf1ff22aa90cc6563da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E6=98=8A?= Date: Mon, 15 Jun 2026 17:25:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E8=89=B2=E5=B9=B6=E4=BC=98=E5=8C=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 将默认主题色从#1171c4更改为#e4393c 2. 在druid配置中开启keepAlive,定期检测空闲连接有效性以应对网络抖动 --- ruoyi-admin/src/main/resources/application-druid.yml | 2 ++ ruoyi-ui/src/store/modules/settings.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 5bb07dbe..8c9daf7d 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -39,6 +39,8 @@ spring: testWhileIdle: true testOnBorrow: false testOnReturn: false + # 开启keepAlive,定期检测空闲连接的有效性,网络抖动后自动恢复 + keepAlive: true webStatFilter: enabled: true statViewServlet: diff --git a/ruoyi-ui/src/store/modules/settings.js b/ruoyi-ui/src/store/modules/settings.js index 98064944..b888afa7 100644 --- a/ruoyi-ui/src/store/modules/settings.js +++ b/ruoyi-ui/src/store/modules/settings.js @@ -6,7 +6,7 @@ const { sideTheme, showSettings, navType, tagsView, tagsViewPersist, tagsIcon, t const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || '' const state = { title: '', - theme: storageSetting.theme || '#1171c4', + theme: storageSetting.theme || '#e4393c', sideTheme: storageSetting.sideTheme || sideTheme, showSettings: showSettings, navType: storageSetting.navType === undefined ? navType : storageSetting.navType,