From 1c0a9cfd81109f356b500a590997eeaca65366a6 Mon Sep 17 00:00:00 2001 From: wibus-wee <1596355173@qq.com> Date: Tue, 9 Aug 2022 18:21:46 +0800 Subject: [PATCH] fix(router): use hash router mode --- src/main.tsx | 6 +++--- src/router/router.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index eacbe97..c2e3df1 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -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( - + - + ); diff --git a/src/router/router.tsx b/src/router/router.tsx index b3f2a6b..fdb5397 100644 --- a/src/router/router.tsx +++ b/src/router/router.tsx @@ -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 */