page.js 370 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* eslint-disable no-undef */
if (typeof __VueOptions !== 'undefined') {
  // 将 main.js 中的 store,use,mixin 同步到 page
  const {
    uses,
    mixins,
    store
  } = __VueOptions
  uses && uses.forEach(use => {
    Vue.use(use)
  })
  mixins && mixins.forEach(mixin => {
    Vue.mixin(mixin)
  })
  store && (Vue.prototype.$store = store)
}