fix(web): 修复页面显示不正确、logo显示异常
This commit is contained in:
@@ -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)}/>,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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}}
|
||||||
|
|||||||
Reference in New Issue
Block a user