From 81e66a6587f528ac79a5456bf85e734e56b93ca4 Mon Sep 17 00:00:00 2001 From: developomp Date: Fri, 10 Sep 2021 10:43:01 +0900 Subject: [PATCH] changed to hash router --- src/index.tsx | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 55d335f..f639b0a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ import React, { useState } from "react" import ReactDOM from "react-dom" -import { BrowserRouter, Switch, Route } from "react-router-dom" +import { HashRouter, Switch, Route } from "react-router-dom" import { Layout } from "antd" @@ -28,7 +28,7 @@ const App = () => { - + @@ -49,34 +49,19 @@ const App = () => { }} > - + - + - + - + - + @@ -86,7 +71,7 @@ const App = () => {