Skip to content

Commit

Permalink
fix(storybook): use hash router
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Oct 29, 2023
1 parent 9358539 commit bb9e8a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ docker run --name shiro -d -p 2323:2323 shiro

## Markdown 扩展语法

请阅读 https://shiro.innei.in/markdown
请阅读 https://shiro.innei.in/#/markdown

## :heart: 鸣谢 & 许可

Expand Down
4 changes: 2 additions & 2 deletions storybook/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createElement, Suspense } from 'react'
import { ErrorBoundary } from 'react-error-boundary'
import { createBrowserRouter } from 'react-router-dom'
import { createHashRouter } from 'react-router-dom'
import type { RouteObject } from 'react-router-dom'

import {
Expand Down Expand Up @@ -34,7 +34,7 @@ children.push({
Component: Debug,
name: 'debug',
})
export const routes = createBrowserRouter([
export const routes = createHashRouter([
{
path: '/',
Component: Root,
Expand Down

0 comments on commit bb9e8a1

Please sign in to comment.