Commit 1de057d1 authored by 周宏民's avatar 周宏民

pref:钦州 集成登录修改

parent 54f969e0
Pipeline #93674 waiting for manual action with stages
...@@ -3,7 +3,7 @@ import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons'; ...@@ -3,7 +3,7 @@ import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';
import { message, Button } from 'antd'; import { message, Button } from 'antd';
import classNames from 'classnames'; import classNames from 'classnames';
import { debounce } from 'lodash'; import { debounce } from 'lodash';
import { getImageUrl } from '@/utils/utils'; import { getImageUrl, goToPath } from '@/utils/utils';
import React, { useRef, useEffect, useState, useMemo } from 'react'; import React, { useRef, useEffect, useState, useMemo } from 'react';
import backImg from '@/assets/images/demonstration/返回.png'; import backImg from '@/assets/images/demonstration/返回.png';
...@@ -35,6 +35,7 @@ const IntegrationQinzhou = props => { ...@@ -35,6 +35,7 @@ const IntegrationQinzhou = props => {
const [integrationData, setIntegrationData] = useState({}); // 所有子站 const [integrationData, setIntegrationData] = useState({}); // 所有子站
const loadingTime = integratedConfig?.loadingTime || 5; const loadingTime = integratedConfig?.loadingTime || 5;
const clientInfo = useRef({}); // 跳转子站信息
const history = useHistory(); const history = useHistory();
const { clear } = useAliveController(); const { clear } = useAliveController();
...@@ -197,6 +198,7 @@ const IntegrationQinzhou = props => { ...@@ -197,6 +198,7 @@ const IntegrationQinzhou = props => {
}); });
return; return;
} }
if (window.qiankunIsCache) { if (window.qiankunIsCache) {
store.set('event:dropCache'); store.set('event:dropCache');
} }
...@@ -211,7 +213,7 @@ const IntegrationQinzhou = props => { ...@@ -211,7 +213,7 @@ const IntegrationQinzhou = props => {
sessionStorage.removeItem(currentProduct); sessionStorage.removeItem(currentProduct);
const currentProductNew = `__global__recent_productIndex__micro_${window.location.hostname}_${cli || 'city'}`; const currentProductNew = `__global__recent_productIndex__micro_${window.location.hostname}_${cli || 'city'}`;
sessionStorage.setItem(currentProductNew, 0); sessionStorage.setItem(currentProductNew, 0);
clientInfo.current = item;
clientRef.current = cli; clientRef.current = cli;
const config = props.global; const config = props.global;
config.uiwidgets = []; config.uiwidgets = [];
...@@ -279,10 +281,13 @@ const IntegrationQinzhou = props => { ...@@ -279,10 +281,13 @@ const IntegrationQinzhou = props => {
setJumpLoading(false); setJumpLoading(false);
jumpProgressEnd(); jumpProgressEnd();
window.jumpLoadingProgress = 0; window.jumpLoadingProgress = 0;
props.updateCurrentIndex && props.updateCurrentIndex(0); if (clientInfo.current?.url && clientInfo.current.subType === '内链') {
goToPath(clientInfo.current?.url);
} else {
props.history.push(`/?client=${clientRef.current || props.global.client}`); props.history.push(`/?client=${clientRef.current || props.global.client}`);
props.updateCurrentIndex && props.updateCurrentIndex(0);
defaultApp(); defaultApp();
}
}; };
const handleError = () => { const handleError = () => {
setJumpLoading(false); setJumpLoading(false);
......
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