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,