fix(web): 修复页面显示不正确、logo显示异常

This commit is contained in:
v-zhangjc9
2025-05-12 18:15:10 +08:00
parent b0603d10bc
commit f23de7c959
2 changed files with 3 additions and 3 deletions

View File

@@ -1,10 +1,10 @@
import {createRoot} from 'react-dom/client' import {createRoot} from 'react-dom/client'
import {createBrowserRouter, RouterProvider} from 'react-router' import {createHashRouter, RouterProvider} from 'react-router'
import './components/Registry.ts' import './components/Registry.ts'
import {routes} from './route.tsx' import {routes} from './route.tsx'
createRoot(document.getElementById('root')!).render( createRoot(document.getElementById('root')!).render(
<RouterProvider router={createBrowserRouter(routes)}/>, <RouterProvider router={createHashRouter(routes)}/>,
) )

View File

@@ -23,7 +23,7 @@ const App: React.FC = () => {
colorTextRightActionsItem: '#dfdfdf', colorTextRightActionsItem: '#dfdfdf',
}, },
}} }}
logo={<img src="/icon.png" alt="logo"/>} logo={<img src="icon.png" alt="logo"/>}
title="Hudi 服务总台" title="Hudi 服务总台"
route={menus} route={menus}
location={{pathname: location.pathname}} location={{pathname: location.pathname}}