@ -77,8 +77,14 @@ const Router = () => {
if (isLogin === false && !route.meta?.authRoute) {
return <Redirect to='/account/login' />;
} else {
switch (props.route.path) {
case '/account/register':
case '/account/find':
return <Redirect to='/main/dashboard' />;
default:
return <route.component {...props} />;
}
};
const ResolveRoutes = () => {