Files
bootx bbb29ea806 refactor(h5): 移除 vite-plugin-svg-icons, 首页 logo 改用直连图片
根因:Logo.vue 默认主题用 <SvgIcon name="logo">,而 public/logo.svg 依赖内部
<style>.s0/.s1 上色,sprite 被 vite-plugin-svg-icons 作用域成 #icon-logo .s0,
该选择器在 <use> 克隆的 shadow tree 内不生效 → logo 渲染为空。

- mobile 首页 <Logo/> → <img src="/logo.svg"> (160px, 保比例),与 PC 首页同源
- 删除 Logo.vue / SvgIcon.vue(互为唯一消费者,均成孤儿)
- 删除 build/vite/plugin/svgSprite.ts,plugin/index.ts 移除其装配
- mobile/app.ts 移除 virtual:svg-icons-register 注册
- 删除 shared/assets/icons/logo.svg(仅被 sprite 扫描,现已冗余)
- package.json 移除 vite-plugin-svg-icons 依赖(连带清掉 132 个传递依赖)
- exception/404.svg 保留(PC/移动 404 页直接 import 使用)
2026-06-24 14:15:55 +08:00
..
2024-05-15 13:23:15 +08:00