mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +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
|
Vue[installKey] = true
|
||||||
// Call Vue.use() to install the plugin into vm
|
// Call Vue.use() to install the plugin into vm
|
||||||
Vue.use(() => {
|
Vue.use(() => {
|
||||||
if (!Object.prototype.hasOwnProperty.call(Vue, key)) {
|
if (!Object.prototype.hasOwnProperty.call(Vue.prototype, key)) {
|
||||||
Object.defineProperty(Vue.prototype, key, {
|
Object.defineProperty(Vue.prototype, key, {
|
||||||
get () {
|
get () {
|
||||||
return this.$root.$options[key]
|
return this.$root.$options[key]
|
||||||
|
Loading…
Reference in New Issue
Block a user