Skip to content

Commit

Permalink
change to hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiChen committed Sep 5, 2024
1 parent 25a2c8d commit d1de2c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ This is an example of the FABRIK algorithm implemented in Typescript. Using html

## 2D Example

[2D Single Chain](https://ruichen0101.github.io/fabrik-example/2d/single-end)
[2D Single Chain](https://ruichen0101.github.io/fabrik-example#/2d/single-end)

[2D Multi Chain](https://ruichen0101.github.io/fabrik-example/2d/multi-end)
[2D Multi Chain](https://ruichen0101.github.io/fabrik-example#/2d/multi-end)

## 3D Example

[3D Single Chain](https://ruichen0101.github.io/fabrik-example/3d/single-end)
[3D Single Chain](https://ruichen0101.github.io/fabrik-example#/3d/single-end)

[3D Multi Chain](https://ruichen0101.github.io/fabrik-example/3d/multi-end)
[3D Multi Chain](https://ruichen0101.github.io/fabrik-example#/3d/multi-end)

[3D Full Body](https://ruichen0101.github.io/fabrik-example/3d/full-body)
[3D Full Body](https://ruichen0101.github.io/fabrik-example#/3d/full-body)

## Running the project

Expand Down
6 changes: 3 additions & 3 deletions src/router/Router.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, ReactNode, lazy } from 'react';
import { Routes, Route, BrowserRouter } from 'react-router-dom';
import { Routes, Route, BrowserRouter, HashRouter } from 'react-router-dom';

import { withSuspense } from '../wrapper/WithSuspense';

Expand All @@ -17,7 +17,7 @@ const FullBody = withSuspense(lazy(() => import('../3d/FullBody')));
class Router extends Component {
render(): ReactNode {
return (
<BrowserRouter basename="/fabrik-example">
<HashRouter>
<Routes>
<Route path="2d" element={<TwoDimension />}>
<Route path="single-end" element={<SingleEnd2D />} />
Expand All @@ -29,7 +29,7 @@ class Router extends Component {
<Route path="full-body" element={<FullBody />} />
</Route>
</Routes>
</BrowserRouter>
</HashRouter>
);
}
}
Expand Down

0 comments on commit d1de2c9

Please sign in to comment.