update:优化

This commit is contained in:
2025-12-01 20:19:01 +08:00
parent 8d177e7154
commit 6cbb20edf9

View File

@@ -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);