mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
fix(vue-app): check plugin key on Vue.prototype
instead of Vue
(#7656)
This commit is contained in:
parent
b6a5349d2d
commit
d4363d4477
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user