场景:页面跳转地址后,强制刷新该页面的数据
有的时候,会遇到这样的问题:当在审批页面处理完数据后,关闭页面再跳转到待办审批页面的时候,会因为缓存,或者是嵌套平台等原因,会看到待办审批页面的数据没有刷新,以下就是处理方法
this.$router.push({ path: "/url" }).then(() => {
window.location.reload()
})
有的时候,会遇到这样的问题:当在审批页面处理完数据后,关闭页面再跳转到待办审批页面的时候,会因为缓存,或者是嵌套平台等原因,会看到待办审批页面的数据没有刷新,以下就是处理方法
this.$router.push({ path: "/url" }).then(() => {
window.location.reload()
})