111
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled

This commit is contained in:
francis-fh
2026-05-29 15:23:27 +08:00
parent 7b38f5b96a
commit 8c0d0b143b
10 changed files with 106 additions and 46 deletions

View File

@@ -86,9 +86,8 @@ export default function ThirdPartyRedirect() {
currentUser: userInfo,
}));
});
if (Number(userInfo?.userType) === 1101) {
Number(userInfo?.userType)
Number(userInfo?.userType)
console.log('userType---', userInfo?.userType);
if (userInfo?.userType === 'common') {
const params = new URLSearchParams(location.search);
const pageName = params.get('pageName');
console.log('userType value:', userInfo?.userType, 'type:', typeof userInfo?.userType);
@@ -108,7 +107,7 @@ export default function ThirdPartyRedirect() {
} else {
const menus = await getRoutersInfo();
console.log('userType value:', userInfo?.userType, 'type:', typeof userInfo?.userType);
if (menus && menus.length > 0 && Number(userInfo?.userType) !== 1101) {
if (menus && menus.length > 0 && userInfo?.userType !== 'common') {
setRemoteMenu(menus);
window.location.replace('http://39.98.44.136:6024/shihezi/management/management/list/index')
}