Revert " 解决路径添加/gemini-viewer-examples/导致示例页面打不开问题"
This reverts commit 47202b6698
.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "gemini-viewer-examples",
|
||||
"name": "gemini-viewer-demo",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"homepage": ".",
|
||||
"homepage": "/gemini-viewer-examples/",
|
||||
"dependencies": {
|
||||
"@codemirror/autocomplete": "^6.3.0",
|
||||
"@codemirror/commands": "^6.1.2",
|
||||
|
@ -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