Commit 3145d570 authored by 徐乐's avatar 徐乐

feat: 修改集成子站切换功能加载问题

parent 2341a2e2
Pipeline #79596 waiting for manual action with stages
...@@ -547,11 +547,13 @@ const Layout = props => { ...@@ -547,11 +547,13 @@ const Layout = props => {
window.open(url, "_blank"); window.open(url, "_blank");
} }
} else { } else {
console.log(111) if (window.qiankunIsCache) {
store.set('event:refreshCurrentMenu', { store.set('event:refreshCurrentMenu', {
dropCache: true, dropCache: true,
// action: 'closeAllTabs' // action: 'closeAllTabs'
}) })
}
const cli = val.url?.indexOf('client=') >= 0 ? val.url.split('client=')[1] : ''; const cli = val.url?.indexOf('client=') >= 0 ? val.url.split('client=')[1] : '';
Cookies.set('client', cli, { Cookies.set('client', cli, {
expires: 86400000 / (24 * 60 * 60 * 1000), expires: 86400000 / (24 * 60 * 60 * 1000),
......
...@@ -63,7 +63,10 @@ const Integration = props => { ...@@ -63,7 +63,10 @@ const Integration = props => {
window.open(url, "_blank"); window.open(url, "_blank");
} }
} else { } else {
store.set('event:dropCache'); if (window.qiankunIsCache) {
store.set('event:dropCache');
}
let cli = item.url?.indexOf('client=') >= 0 ? item.url.split('client=')[1] : ''; let cli = item.url?.indexOf('client=') >= 0 ? item.url.split('client=')[1] : '';
Cookies.set('client', cli, { Cookies.set('client', cli, {
......
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