mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
define symbol name
This commit is contained in:
parent
63ce6530a0
commit
e46ed489ca
@ -7,7 +7,7 @@ import { PageContext, VikePageContext } from '#types/PageContext'
|
|||||||
|
|
||||||
import type { App, InjectionKey } from 'vue'
|
import type { App, InjectionKey } from 'vue'
|
||||||
|
|
||||||
const key: InjectionKey<VikePageContext & PageContext> = Symbol(undefined)
|
const key: InjectionKey<VikePageContext & PageContext> = Symbol('pageContext')
|
||||||
|
|
||||||
function usePageContext() {
|
function usePageContext() {
|
||||||
const pageContext = inject(key)
|
const pageContext = inject(key)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user