|
|
@ -73,8 +73,11 @@ const Router = () => { |
|
|
|
action = route.meta.action ? route.meta.action : null; |
|
|
|
action = route.meta.action ? route.meta.action : null; |
|
|
|
resource = route.meta.resource ? route.meta.resource : null; |
|
|
|
resource = route.meta.resource ? route.meta.resource : null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if ( |
|
|
|
if (isLogin === false && !route.meta?.authRoute) { |
|
|
|
isLogin === false && |
|
|
|
|
|
|
|
!route.meta?.authRoute && |
|
|
|
|
|
|
|
!window.navigator.userAgent === 'ReactSnap' |
|
|
|
|
|
|
|
) { |
|
|
|
return <Redirect to='/account/login' />; |
|
|
|
return <Redirect to='/account/login' />; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// switch (props.route.path) {
|
|
|
|
// switch (props.route.path) {
|
|
|
|