chore: update signin button in visitor mode

This commit is contained in:
boojack
2022-07-25 21:50:25 +08:00
parent cfa4151cff
commit 58e68f8f80
9 changed files with 55 additions and 27 deletions

View File

@ -1,10 +1,9 @@
import { createRoot } from "react-dom/client";
import { Provider } from "react-redux";
import store from "./store";
import { updateStateWithLocation } from "./store/modules/location";
import App from "./App";
import "./less/global.less";
import "./helpers/polyfill";
import "./less/global.less";
import "./css/index.css";
const container = document.getElementById("root");
@ -14,10 +13,3 @@ root.render(
<App />
</Provider>
);
window.onload = () => {
store.dispatch(updateStateWithLocation());
window.onpopstate = () => {
store.dispatch(updateStateWithLocation());
};
};