Commit e5a6788c authored by wanghao's avatar wanghao

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

parent 399b2e74
...@@ -129,7 +129,10 @@ export default { ...@@ -129,7 +129,10 @@ export default {
// 先跳转到目标页面 // 先跳转到目标页面
this.$router.push('/index').then(() => { this.$router.push('/index').then(() => {
// 跳转成功后刷新页面 // 跳转成功后刷新页面
window.location.reload() // 添加时间戳参数,强制从服务器重新加载
const currentUrl = window.location.href.split('?')[0];
const newUrl = currentUrl + '?t=' + Date.now();
window.location.href = newUrl;
}) })
}, },
} }
......
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