updatge
This commit is contained in:
12
app/useDJSSRContext.ts
Normal file
12
app/useDJSSRContext.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { type MaybeRefOrGetter, useSSRContext } from "vue";
|
||||
|
||||
export type DJSSRContext = {
|
||||
head: {
|
||||
title: MaybeRefOrGetter<string>;
|
||||
};
|
||||
registry: Record<string, unknown>;
|
||||
};
|
||||
|
||||
export default function useDJSSRContext() {
|
||||
return useSSRContext<DJSSRContext>();
|
||||
}
|
||||
Reference in New Issue
Block a user