fix(bridge): update useContext (#1871)

This commit is contained in:
Daniel Roe 2021-11-11 16:33:06 +00:00 committed by GitHub
parent 202617bdd1
commit 7cc526ce69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}