diff --git a/web/client/src/sections/auth/containers/login.js b/web/client/src/sections/auth/containers/login.js index adb52159..e7eb603a 100644 --- a/web/client/src/sections/auth/containers/login.js +++ b/web/client/src/sections/auth/containers/login.js @@ -32,6 +32,7 @@ const Login = props => { hasAuth = allroutes?.filter((item) => { return user?.userResources.find((child) => { return child.resourceId === item.authCode }) }) if (user?.username === 'SuperAdmin') { dispatch(push('/fillion/luzheng')) + } else if (hasAuth && hasAuth.length > 0) { const path = hasAuth[0].path diff --git a/web/client/src/sections/quanju/containers/heand/index.js b/web/client/src/sections/quanju/containers/heand/index.js index 7748120e..bda0a41a 100644 --- a/web/client/src/sections/quanju/containers/heand/index.js +++ b/web/client/src/sections/quanju/containers/heand/index.js @@ -19,6 +19,7 @@ const Header = (props) => { if (user?.username === 'SuperAdmin') { dispatch(push('/fillion/luzheng')) } + else if (hasAuth && hasAuth.length > 0) { const path = hasAuth[0].path console.log('sasa', `${path}`)