Browse Source

添加路由跳转

dev
dengyinhuan 1 year ago
parent
commit
9f427b629c
  1. 1
      web/client/src/sections/auth/containers/login.js
  2. 1
      web/client/src/sections/quanju/containers/heand/index.js

1
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

1
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}`)

Loading…
Cancel
Save