import App from './App' import Vue from 'vue' import store from './store' Vue.config.productionTip = false App.mpType = 'app' import init from '@/config/init' // #ifdef H5 init.VueComponents.forEach(v => Vue.component(v.name, v)) // #endif Vue.prototype.$sys = uni.getSystemInfoSync(); // 挂载非vue插件到vue实例中,这样可以全局调用方法 for (const key in init.NotVuePlugIn) Vue.prototype[key] = init.NotVuePlugIn[key] const app = new Vue({ store, ...App }) app.$mount()