refactor(layout): 优化网页布局和路由设置

- 更新 logo显示方式,使用 import 代替直接引用
- 将 BrowserRouter 替换为 HashRouter,以适应前端路由
- 在项目中添加 logo.svg 文件,统一 logo 资源
- 调整 vite.config.ts,设置 base 为 './' 以优化构建
This commit is contained in:
黄建武
2025-05-09 09:57:13 +08:00
parent 8ed50ba662
commit 732ea0ba2b
6 changed files with 23 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ export default defineConfig(({ mode }) => {
const port = env.FRONTEND_PORT || 3015
return {
base: './',
plugins: [react(), tailwindcss()],
resolve: {
alias: {