Revert " 解决路径添加/gemini-viewer-examples/导致示例页面打不开问题"
This reverts commit 47202b6698
.
This commit is contained in:
@ -10,7 +10,7 @@ const root = ReactDOM.createRoot(
|
||||
);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<HashRouter>
|
||||
<HashRouter basename="/">
|
||||
<App />
|
||||
</HashRouter>
|
||||
</React.StrictMode>
|
||||
|
@ -8,7 +8,7 @@ function Demo() {
|
||||
const [data, setData] = useState<MenusProp[]>([]);
|
||||
|
||||
useEffect(() => {
|
||||
fetch("./config.json").then(data => data.json()).then((data) => {
|
||||
fetch("../gemini-viewer-examples/config.json").then(data => data.json()).then((data) => {
|
||||
setData(data);
|
||||
});
|
||||
}, [])
|
||||
|
Reference in New Issue
Block a user