Skip to content

Commit bb9e8a1

Browse files
committed
fix(storybook): use hash router
Signed-off-by: Innei <[email protected]>
1 parent 9358539 commit bb9e8a1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ docker run --name shiro -d -p 2323:2323 shiro
8686

8787
## Markdown 扩展语法
8888

89-
请阅读 https://shiro.innei.in/markdown
89+
请阅读 https://shiro.innei.in/#/markdown
9090

9191
## :heart: 鸣谢 & 许可
9292

storybook/src/router.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createElement, Suspense } from 'react'
22
import { ErrorBoundary } from 'react-error-boundary'
3-
import { createBrowserRouter } from 'react-router-dom'
3+
import { createHashRouter } from 'react-router-dom'
44
import type { RouteObject } from 'react-router-dom'
55

66
import {
@@ -34,7 +34,7 @@ children.push({
3434
Component: Debug,
3535
name: 'debug',
3636
})
37-
export const routes = createBrowserRouter([
37+
export const routes = createHashRouter([
3838
{
3939
path: '/',
4040
Component: Root,

0 commit comments

Comments
 (0)