change basename

This commit is contained in:
baol 2023-11-05 14:39:42 +08:00
parent d3232db8a4
commit 6941547024
4 changed files with 3 additions and 4 deletions

View File

@ -55,5 +55,5 @@
"last 1 safari version" "last 1 safari version"
] ]
}, },
"homepage": "http://analysis.tpdc.ac.cn/show" "homepage": "/show"
} }

View File

@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL. work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>React App</title> <title>时空三极环境大数据平台</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>

View File

@ -23,7 +23,6 @@ function App() {
path="map/climateReconDataAssim" path="map/climateReconDataAssim"
element={<ClimateReconDataAssim />} element={<ClimateReconDataAssim />}
></Route> ></Route>
<Route path="*" element={<Navigate to={"/"} replace={true} />} />
</Routes> </Routes>
); );
} }

View File

@ -11,7 +11,7 @@ const root = ReactDOM.createRoot(document.getElementById("root"));
root.render( root.render(
// <React.StrictMode> // <React.StrictMode>
<Provider store={store}> <Provider store={store}>
<BrowserRouter> <BrowserRouter basename="show">
<App /> <App />
</BrowserRouter> </BrowserRouter>
</Provider> </Provider>