Skip to content

Commit

Permalink
fix(mp): add Global Mixin logic #411
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Jun 20, 2019
1 parent 8934a4d commit 70996f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/runtime/wrapper/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Vue from 'vue'

import {
isFn,
noop,
Expand Down Expand Up @@ -28,6 +30,10 @@ function hasHook (hook, vueOptions) {
return true
}

if (Vue.options && Array.isArray(Vue.options[hook])) {
return true
}

vueOptions = vueOptions.default || vueOptions

if (isFn(vueOptions)) {
Expand Down

0 comments on commit 70996f5

Please sign in to comment.