|
@ -32,6 +32,7 @@ const Login = props => { |
|
|
hasAuth = allroutes?.filter((item) => { return user?.userResources.find((child) => { return child.resourceId === item.authCode }) }) |
|
|
hasAuth = allroutes?.filter((item) => { return user?.userResources.find((child) => { return child.resourceId === item.authCode }) }) |
|
|
if (user?.username === 'SuperAdmin') { |
|
|
if (user?.username === 'SuperAdmin') { |
|
|
dispatch(push('/fillion/luzheng')) |
|
|
dispatch(push('/fillion/luzheng')) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else if (hasAuth && hasAuth.length > 0) { |
|
|
else if (hasAuth && hasAuth.length > 0) { |
|
|
const path = hasAuth[0].path |
|
|
const path = hasAuth[0].path |
|
|