Commit fe390090 authored by 杨思琦's avatar 杨思琦

修复菜单切换

parent e46f1dde
Pipeline #90092 passed with stages
......@@ -22,14 +22,12 @@ const IntegratedSwitch = props => {
const [client, setClient] = useState('');
useEffect(() => {
const cli = '';
sessionStorage.setItem('client', cli);
if (!window?.globalConfig?.userInfo?.OID || !(window?.globalConfig?.isIntegration >= 1)) return setDataList([]);
appService.GetIntegrationConfig({
type: '集成登录',
userId: window?.globalConfig?.userInfo?.OID ?? null,
isEnable: true,
client: `${client || cli || props.global.client}`,
client: `${client || props.global.client || ''}`,
})
.then(res => {
setDataList(res?.data || []);
......@@ -122,10 +120,8 @@ const IntegratedSwitch = props => {
});
useEffect(() => {
const cli = '';
sessionStorage.setItem('client', cli);
const handleToggleIndustry = event => {
history.push(`/?client=${client || cli || props.global.client}`);
history.push(`/?client=${client || props.global.client || ''}`);
props.updateCurrentIndex(0);
defaultApp();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment