feat: use hash router instead of browser (#1)

This commit is contained in:
kunish 2023-08-27 16:41:09 +08:00 committed by GitHub
parent cd96f66da7
commit b9ab6a9244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
import 'solid-devtools'
import { render } from 'solid-js/web'
import { Router } from '@solidjs/router'
import { Router, hashIntegration } from '@solidjs/router'
import { App } from './App'
import './index.css'
@ -10,7 +10,7 @@ const root = document.getElementById('root')
render(
() => (
<Router>
<Router source={hashIntegration()}>
<App />
</Router>
),