mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix(bridge): update useContext
(#1871)
This commit is contained in:
parent
202617bdd1
commit
7cc526ce69
@ -154,10 +154,10 @@ export const useContext = () => {
|
|||||||
const nuxt = useNuxtApp()
|
const nuxt = useNuxtApp()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...nuxt.nuxt2App.context,
|
...nuxt.nuxt2Context,
|
||||||
route: computed(() => route),
|
route: computed(() => route),
|
||||||
query: computed(() => route.value.query),
|
query: computed(() => route.value.query),
|
||||||
from: computed(() => nuxt.nuxt2App.context.from),
|
from: computed(() => nuxt.nuxt2Context.from),
|
||||||
params: computed(() => route.value.params)
|
params: computed(() => route.value.params)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user