Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 9a2af01

Browse files
committed
fix(server): fix ssrHeadCollection bug
1 parent 160174a commit 9a2af01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

framework/vue/router.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ const createSSRApp_ = (app: Component, props?: RootProps) => {
3535
const { ssrContext } = props || {};
3636
const routeModules = ssrContext?.routeModules || loadSSRModulesFromTag();
3737

38+
// clean
39+
DataContext.value.ssrHeadCollection = [];
40+
3841
let routeComponent = undefined;
3942

4043
if (routeModules && routeModules.length > 0) {

0 commit comments

Comments
 (0)