统一使用 public logo 资源
- 登录页、侧栏和 favicon 统一引用 public/logo.png 暴露的 /logo.png。 - 删除根目录 logo_square.png 和 Express 中单独提供该文件的路由。 - 同步更新组件测试、项目文档和历史工程分析说明,避免继续引用旧 logo_square。 - 同步整理 ../Seg_Server_Docker 部署包,仅保留 public/logo.png 并更新前端 Docker 构建配置。
This commit is contained in:
@@ -41,10 +41,10 @@ describe('Sidebar', () => {
|
||||
expect(screen.getByTitle('AI智能分割').querySelector('[data-testid="ai-segmentation-icon"]')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('uses the root logo_square asset for the sidebar logo', () => {
|
||||
it('uses the public logo asset for the sidebar logo', () => {
|
||||
render(<Sidebar activeModule="dashboard" setActiveModule={vi.fn()} />);
|
||||
|
||||
expect(screen.getByAltText('Logo')).toHaveAttribute('src', expect.stringContaining('logo_square'));
|
||||
expect(screen.getByAltText('Logo')).toHaveAttribute('src', expect.stringContaining('logo.png'));
|
||||
});
|
||||
|
||||
it('uses a logout icon and prevents the logout tooltip from catching workspace hover', () => {
|
||||
|
||||
Reference in New Issue
Block a user