mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-22 03:12:41 +00:00
fix
This commit is contained in:
parent
f22ef4f137
commit
b14f3dc2d5
@ -160,9 +160,9 @@ function nuxt2Shims (nuxt: Nuxt) {
|
|||||||
nuxt.hooks = nuxt
|
nuxt.hooks = nuxt
|
||||||
|
|
||||||
// Allow using useNuxt()
|
// Allow using useNuxt()
|
||||||
if (!nuxtCtx.tryUse()) {
|
if (!nuxtCtx().tryUse()) {
|
||||||
nuxtCtx.set(nuxt)
|
nuxtCtx().set(nuxt)
|
||||||
nuxt.hook('close', () => nuxtCtx.unset())
|
nuxt.hook('close', () => nuxtCtx().unset())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Support virtual templates with getContents() by writing them to .nuxt directory
|
// Support virtual templates with getContents() by writing them to .nuxt directory
|
||||||
|
Loading…
Reference in New Issue
Block a user