Skip to content

Commit

Permalink
fix(router): use hash router mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Aug 9, 2022
1 parent 691b513 commit 1c0a9cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from "react";
import ReactDOM from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import { BrowserRouter, HashRouter } from "react-router-dom";
import App from "./App";
import "./index.css";
import "@icon-park/react/styles/index.css";

ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<BrowserRouter>
<HashRouter>
<App />
</BrowserRouter>
</HashRouter>
</React.StrictMode>
);
2 changes: 1 addition & 1 deletion src/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @author: Wibus
* @Date: 2022-07-12 16:25:35
* @LastEditors: Wibus
* @LastEditTime: 2022-08-09 15:08:53
* @LastEditTime: 2022-08-09 18:21:14
* Coding With IU
*/

Expand Down

0 comments on commit 1c0a9cf

Please sign in to comment.