mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 15:15:19 +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()
|
||||
|
||||
return {
|
||||
...nuxt.nuxt2App.context,
|
||||
...nuxt.nuxt2Context,
|
||||
route: computed(() => route),
|
||||
query: computed(() => route.value.query),
|
||||
from: computed(() => nuxt.nuxt2App.context.from),
|
||||
from: computed(() => nuxt.nuxt2Context.from),
|
||||
params: computed(() => route.value.params)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user