Files
Pre_Seg_Server/工程分析/需求分析-2026-04-29-23-02-56.md
admin 6f4d4efeaf 统一使用 public logo 资源
- 登录页、侧栏和 favicon 统一引用 public/logo.png 暴露的 /logo.png。

- 删除根目录 logo_square.png 和 Express 中单独提供该文件的路由。

- 同步更新组件测试、项目文档和历史工程分析说明,避免继续引用旧 logo_square。

- 同步整理 ../Seg_Server_Docker 部署包,仅保留 public/logo.png 并更新前端 Docker 构建配置。
2026-05-07 15:51:45 +08:00

33 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 需求分析 - 2026-04-29-23-02-56
## 需求来源
- 提出时间: 2026-04-29-23-02-56
- 需求类型: 缺陷修复 + 资源部署
## 原始需求描述
1. 将 logo 静态资源移动到 `public/logo.png`,作为系统 logo
2. 解决 `Failed to load resource: the server responded with a status of 404 (Not Found) 3000/favicon.ico:1`
## 需求拆解
### 需求 1: 部署 logo 静态资源
- **详细描述**: 早期 logo 位于项目根目录,但前端 Sidebar.tsx 引用的是 `/Logo.png`,且 Vite 项目缺少 `public/` 目录导致静态文件无法暴露到根路径;当前项目已统一使用 `public/logo.png`
- **优先级**: P0-阻塞
- **影响范围**: `public/` 目录创建、`Sidebar.tsx`
- **验收标准**: 浏览器可正常加载 logoSidebar 正确显示
### 需求 2: 修复 favicon 404
- **详细描述**: index.html 无 favicon 声明,浏览器默认请求 `/favicon.ico` 返回 404
- **优先级**: P0-阻塞
- **影响范围**: `index.html`
- **验收标准**: 浏览器不再报 favicon.ico 404
## 约束条件
- 不修改 logo 图片本身
- 保持现有 UI 样式
## 风险评估
| 风险点 | 影响 | 缓解措施 |
|--------|------|----------|
| 缓存导致 logo 仍不显示 | 低 | 强制刷新浏览器 |