fix:homepage and update ci

This commit is contained in:
“李仕蓬”
2022-11-16 14:35:24 +08:00
parent bd8a2cb632
commit 02a70f8de7
6 changed files with 8 additions and 13 deletions

View File

@ -1,7 +1,7 @@
import './App.css'
import { FC } from 'react';
import { RecoilRoot } from "recoil";
import { Routes, Route } from "react-router-dom";
import { Routes, Route } from 'react-router-dom';
import Demo from './pages/demo';
const App: FC = () => {

View File

@ -10,7 +10,7 @@ const root = ReactDOM.createRoot(
);
root.render(
<React.StrictMode>
<HashRouter>
<HashRouter basename="">
<App />
</HashRouter>
</React.StrictMode>

View File

@ -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);
});
}, [])