This commit is contained in:
van
2026-04-05 20:47:03 +08:00
parent 305ef3eeee
commit 5fcf92d2da
5 changed files with 332 additions and 81 deletions

View File

@@ -58,6 +58,11 @@ router.beforeEach((to, from, next) => {
}
})
router.afterEach(() => {
router.afterEach((to) => {
NProgress.done()
// 移动端不渲染 TagsView其 watch 里的 addTags 不会执行cachedViews 一直为空。
// AppMain 中 keep-alive 的 include 依赖 cachedViews空数组时部分页面如闲鱼商品首进可能白屏需刷新才正常。
if (to.name) {
store.dispatch('tagsView/addView', to)
}
})