Skip to content

fix: 修复浏览器标签页图标不显示 - #575

Closed
Ranch007 wants to merge 5 commits into
openRin:mainfrom
Ranch007:main
Closed

Ranch007 wants to merge 5 commits into
openRin:mainfrom
Ranch007:main

Conversation

@Ranch007

Copy link
Copy Markdown

问题

首页初始 HTML 没有声明 favicon。React 加载后指向 /favicon.ico,
但该地址实际返回 WebP;已上传的原始图标可通过
/favicon/original 正常获取,格式为 PNG。

修改

  • 在首页 HTML 中直接引用上传的原始图标,避免等待 React 加载。
  • 移除 React 中指向 /favicon.ico 的旧图标声明。
  • 将 /favicon.ico 重定向到原始图标,并调整原图缓存策略。
  • 上传成功后刷新当前页面的图标链接。
  • 从上传选择器中移除服务端不支持的 SVG 格式。

验证

  • bun run test
  • bun run check
  • bun run format:check
  • 浏览器中确认上传的图标正常显示

@Ranch007 Ranch007 closed this Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant