import React, {useEffect} from 'react'
import './assets/global.scss'
import {AppRouter} from "./pages/Router.tsx";
import {useUserinfoStore} from "./store/userinfoStore.ts";
import {useLocation, useNavigation} from "react-router-dom";


export function App() {
    const {init} = useUserinfoStore();
    useEffect(()=>{
        init(); // 初始化用户信息
    }, [])
    return (<div>
        <AppRouter/>
    </div>)
}
