Skip to content

Commit

Permalink
refactor: 优化刷新页面,方式
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Sep 3, 2022
1 parent d2f64f6 commit 9714171
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/layout/components/page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const routeStore = useRouteStore();
const keepAliveProps = computed<MeKeepAliveProps>(() => ({
max: 30,
includeKey: [...routeStore.cacheFullPath],
exclude: 'Redirect',
}));
const route = useRoute();
Expand Down
1 change: 1 addition & 0 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const constantRoutes: RouteRecordRaw[] = [
meta: {
hideMenu: true,
title: '',
noCache: true,
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/views/redirect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ const router = useRouter();
const fullPath = route.params.path as string;
const routeStore = useRouteStore();
routeStore.cacheFullPath.delete(fullPath);
router.replace(fullPath);
onMounted(() => router.replace(fullPath));
</script>

0 comments on commit 9714171

Please sign in to comment.