change basename
This commit is contained in:
parent
d3232db8a4
commit
6941547024
@ -55,5 +55,5 @@
|
||||
"last 1 safari version"
|
||||
]
|
||||
},
|
||||
"homepage": "http://analysis.tpdc.ac.cn/show"
|
||||
"homepage": "/show"
|
||||
}
|
||||
|
@ -24,7 +24,7 @@
|
||||
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`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
<title>时空三极环境大数据平台</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
|
@ -23,7 +23,6 @@ function App() {
|
||||
path="map/climateReconDataAssim"
|
||||
element={<ClimateReconDataAssim />}
|
||||
></Route>
|
||||
<Route path="*" element={<Navigate to={"/"} replace={true} />} />
|
||||
</Routes>
|
||||
);
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ const root = ReactDOM.createRoot(document.getElementById("root"));
|
||||
root.render(
|
||||
// <React.StrictMode>
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
<BrowserRouter basename="show">
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</Provider>
|
||||
|
Loading…
x
Reference in New Issue
Block a user