mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +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
|
||||
// Add into app
|
||||
app[key] = value
|
||||
// Add into context
|
||||
if (!app.context[key]) {
|
||||
app.context[key] = value
|
||||
}
|
||||
<% if (store) { %>
|
||||
// Add into store
|
||||
store[key] = app[key]
|
||||
|
Loading…
Reference in New Issue
Block a user