From d4363d447722ce82b13a4d2c26cd0fb78b8ca7f8 Mon Sep 17 00:00:00 2001 From: Denis Karabaza Date: Thu, 2 Jul 2020 19:43:32 +0300 Subject: [PATCH] fix(vue-app): check plugin key on `Vue.prototype` instead of `Vue` (#7656) --- packages/vue-app/template/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue-app/template/index.js b/packages/vue-app/template/index.js index 15a2868e09..765c543a35 100644 --- a/packages/vue-app/template/index.js +++ b/packages/vue-app/template/index.js @@ -189,7 +189,7 @@ async function createApp(ssrContext, config = {}) { Vue[installKey] = true // Call Vue.use() to install the plugin into vm Vue.use(() => { - if (!Object.prototype.hasOwnProperty.call(Vue, key)) { + if (!Object.prototype.hasOwnProperty.call(Vue.prototype, key)) { Object.defineProperty(Vue.prototype, key, { get () { return this.$root.$options[key]