|
|
@ -35,7 +35,9 @@ export default function (SpecificComponent: ReactNode, option: IOption) { |
|
|
|
if (user?.cptAuthCode === 'DF0002') { |
|
|
|
if (user?.cptAuthCode === 'DF0002') { |
|
|
|
const pathname = history.location.pathname; |
|
|
|
const pathname = history.location.pathname; |
|
|
|
|
|
|
|
|
|
|
|
if (pathname != '/flight/Approvals/new') { |
|
|
|
if ( |
|
|
|
|
|
|
|
!(pathname == '/flight/Approvals/new' || pathname == '/rightMenu') |
|
|
|
|
|
|
|
) { |
|
|
|
props.history.replace('/flight/Approvals/new'); |
|
|
|
props.history.replace('/flight/Approvals/new'); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|