fix: 调整默认主题色并优化数据库连接配置

1.  将默认主题色从#1171c4更改为#e4393c
2.  在druid配置中开启keepAlive,定期检测空闲连接有效性以应对网络抖动
This commit is contained in:
2026-06-15 17:25:56 +08:00
parent bc15ebf594
commit 3f91a47927
2 changed files with 3 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ spring:
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 开启keepAlive定期检测空闲连接的有效性网络抖动后自动恢复
keepAlive: true
webStatFilter:
enabled: true
statViewServlet:

View File

@@ -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,