mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
fix: Change file name
This commit is contained in:
@@ -13,9 +13,6 @@ const withRouteGuard = (WrappedComponent: ExoticComponent<any> | JSXElementConst
|
||||
return function RouteGuard(props: JSX.IntrinsicAttributes) {
|
||||
const [isActivated, setIsActivated] = useState<boolean>(false);
|
||||
const location = useLocation();
|
||||
useEffect(()=>{
|
||||
console.log('路由守卫')
|
||||
},[])
|
||||
// check canActivate
|
||||
const startLifecycle = async ()=>{
|
||||
if(canActivate){
|
||||
|
||||
Reference in New Issue
Block a user