update:优化
This commit is contained in:
@@ -88,7 +88,6 @@ export function formatTwoStageRoutes(arr: any) {
|
||||
// 路由加载前
|
||||
router.beforeEach(async (to, from) => {
|
||||
NProgress.configure({showSpinner: false});
|
||||
console.log('beforeEach-----', storesTagsViewRoutes.keepAliveNames, to.href);
|
||||
// 判断是否已经存在标签,不存在则设置缓存
|
||||
if (!storesTagsViewRoutes.keepAliveNames.includes(decodeURIComponent(to.href))) {
|
||||
storesTagsViewRoutes.setCacheKeepAlivePath(to.href);
|
||||
|
||||
Reference in New Issue
Block a user