Skip to content

Commit

Permalink
fix(vue-app): check plugin key on Vue.prototype instead of Vue (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
simplesmiler committed Jul 2, 2020
1 parent b6a5349 commit d4363d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-app/template/index.js
Expand Up @@ -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]
Expand Down

0 comments on commit d4363d4

Please sign in to comment.