chore: release v3.10.1

- Bump version to 3.10.1 across all config files
- Update CHANGELOG with all fixes since v3.10.0
- Fix Rust Clippy warning by using derive(Default)
- Apply code formatting
This commit is contained in:
Jason
2026-01-23 10:41:38 +08:00
parent 07fc6b175e
commit 0ef670325b
7 changed files with 36 additions and 15 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ export const ProviderIcon: React.FC<ProviderIconProps> = ({
// 获取有效颜色:优先使用传入的有效 color,否则从元数据获取 defaultColor
const effectiveColor = useMemo(() => {
// 只有当 color 是有效的非空字符串时才使用
if (color && typeof color === 'string' && color.trim() !== '') {
if (color && typeof color === "string" && color.trim() !== "") {
return color;
}
// 否则从元数据获取 defaultColor