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

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

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