import { Outlet, Link, useHref, useLocation, NavLink } from "react-router-dom";
import { useEffect } from "react";
import { observer } from "mobx-react";
import { Layout, Menu, ConfigProvider, theme, Dropdown, Space, Row, Col, Alert, App as AntApp } from "antd";
import { DownOutlined } from "@ant-design/icons";
import "antd/dist/reset.css";
import AppLogo from "@/assets/logo-gh.png";
import { useStore } from "@/stores/StoreContext.js";
const { Header, Content, Footer } = Layout;
const items = [
{
label: Change password,
key: "0",
},
{
label: Profile,
key: "1",
},
{
type: "divider",
},
{
label: Logout,
key: "3",
},
];
function App() {
const { authStore } = useStore();
const href = useHref();
let location = useLocation();
useEffect(() => {
// Check location
console.info("location.pathname: " + location.pathname);
console.info(location.pathname.split("/"));
}, [location]);
const splitPath = location.pathname.split("/");
let defaultPath = "reservation";
if (splitPath.length > 1) {
defaultPath = splitPath[1];
}
const {
token: { colorBgContainer },
} = theme.useToken();
return (
公告 查看后不再显示,或者一直显示,或者放到页面底部} description="" type="info" banner closable />
);
}
export default observer(App);