feat: 优化合并的代码 完成刷新单页面功能

This commit is contained in:
FairyEver
2020-08-25 15:34:13 +08:00
parent 8560f87e8a
commit 5e3eadf0eb
3 changed files with 13 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
export default {
beforeRouteEnter (to, from, next) {
from.meta[from.path] = Date.now()
from.meta[`__stamp-${from.path}`] = Date.now()
next(instance => instance.$router.replace({ path: from.fullPath, meta: from.meta }))
},
render: h => h()