wenlele 1 year ago
parent
commit
34d53de562
  1. 3
      web/client/src/sections/auth/containers/login.js
  2. 3
      web/client/src/sections/quanju/containers/heand/index.js

3
web/client/src/sections/auth/containers/login.js

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

3
web/client/src/sections/quanju/containers/heand/index.js

@ -17,8 +17,9 @@ const Header = (props) => {
const allroutes = JSON.parse(sessionStorage.getItem('allRoutes')) || []
const hasAuth = allroutes?.filter((item) => { return user?.userResources.find((child) => { return child.resourceId === item.authCode }) })
if (user?.username === 'SuperAdmin') {
dispatch(push('/fillion/infor'))
dispatch(push('/fillion/luzheng'))
}
else if (hasAuth && hasAuth.length > 0) {
const path = hasAuth[0].path
console.log('sasa', `${path}`)

Loading…
Cancel
Save