Skip to content

Commit

Permalink
fix: jump page is blank close #168
Browse files Browse the repository at this point in the history
  • Loading branch information
aibayanyu20 committed May 5, 2024
1 parent 81009b7 commit 25b1490
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/layouts/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const layoutProps = computed(() =>

<a-watermark h-full flex flex-col flex-1 :content="!layoutSetting.watermark ? '' : layoutSetting.title ?? 'Antdv Pro'">
<RouterView>
<template #default="{ Component }">
<component :is="Component" />
<template #default="{ Component, route }">
<component :is="Component" :key="route.fullPath" />
</template>
</RouterView>
</a-watermark>
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts", "plugins/**/*.ts","vitest.config.ts"]
"include": ["vite.config.ts", "plugins/**/*.ts","vitest.config.ts","scripts/**/*.ts"]
}

0 comments on commit 25b1490

Please sign in to comment.