From 35693a9fa92acca33fee75a0a56bcd4e514a7afd Mon Sep 17 00:00:00 2001 From: meteorlxy Date: Wed, 11 Sep 2024 22:01:54 +0800 Subject: [PATCH] chore(client): use generic param for useSSRContext --- packages/client/src/setupUpdateHead.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/setupUpdateHead.ts b/packages/client/src/setupUpdateHead.ts index d3f61e414b..2ad189ae52 100644 --- a/packages/client/src/setupUpdateHead.ts +++ b/packages/client/src/setupUpdateHead.ts @@ -81,7 +81,7 @@ export const setupUpdateHead = (): void => { // ssr-only, extract page meta info to ssrContext if (__VUEPRESS_SSR__) { - const ssrContext: VuepressSSRContext | undefined = useSSRContext() + const ssrContext = useSSRContext() if (ssrContext) { ssrContext.head = head.value ssrContext.lang = lang.value