mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
feat: use hash router instead of browser (#1)
This commit is contained in:
parent
cd96f66da7
commit
b9ab6a9244
@ -2,7 +2,7 @@
|
|||||||
import 'solid-devtools'
|
import 'solid-devtools'
|
||||||
import { render } from 'solid-js/web'
|
import { render } from 'solid-js/web'
|
||||||
|
|
||||||
import { Router } from '@solidjs/router'
|
import { Router, hashIntegration } from '@solidjs/router'
|
||||||
import { App } from './App'
|
import { App } from './App'
|
||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ const root = document.getElementById('root')
|
|||||||
|
|
||||||
render(
|
render(
|
||||||
() => (
|
() => (
|
||||||
<Router>
|
<Router source={hashIntegration()}>
|
||||||
<App />
|
<App />
|
||||||
</Router>
|
</Router>
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user