feat(vue-app): inject into plugins context (#7212)

This commit is contained in:
Sébastien Chopin 2020-04-14 11:27:13 +02:00 committed by GitHub
parent a2495a6873
commit 479e3ffefb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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]