mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-19 23:21:09 +00:00
feat(vue-app): inject into plugins context (#7212)
This commit is contained in:
parent
a2495a6873
commit
479e3ffefb
@ -174,6 +174,10 @@ async function createApp (ssrContext) {
|
|||||||
key = '$' + key
|
key = '$' + key
|
||||||
// Add into app
|
// Add into app
|
||||||
app[key] = value
|
app[key] = value
|
||||||
|
// Add into context
|
||||||
|
if (!app.context[key]) {
|
||||||
|
app.context[key] = value
|
||||||
|
}
|
||||||
<% if (store) { %>
|
<% if (store) { %>
|
||||||
// Add into store
|
// Add into store
|
||||||
store[key] = app[key]
|
store[key] = app[key]
|
||||||
|
Loading…
Reference in New Issue
Block a user