Commit e25fd005 authored by wanghao's avatar wanghao

1 进入管理系统 强制刷新界面调整

parent 5165fae5
...@@ -126,25 +126,11 @@ export default { ...@@ -126,25 +126,11 @@ export default {
this.selectedMenu = index; this.selectedMenu = index;
}, },
goToAdmin() { goToAdmin() {
// 先手动销毁 DataV 相关组件 // 在新窗口打开,完全隔离当前环境
const dataVContainers = document.querySelectorAll('.dv-full-screen-container'); const baseUrl = window.location.origin;
dataVContainers.forEach(container => { const targetUrl = baseUrl + '/index?_t=' + Date.now();
container.remove();
});
// 清理可能的残留样式
const dataVStyles = document.querySelectorAll('style[data-v]');
dataVStyles.forEach(style => {
if (style.innerHTML.includes('dv-full-screen-container')) {
style.remove();
}
});
setTimeout(() => { window.open(targetUrl, '_blank');
this.$router.push('/index').then(() => {
window.location.href = window.location.origin + '/index?_t=' + Date.now();
});
}, 100);
}, },
} }
} }
......
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