import App from './App' import Vue from 'vue' import config from "@/config"; import store from '@/store' App.mpType = 'app' Vue.config.productionTip = false config.VueComponents.forEach(v => Vue.component(v.name, v)); // 挂载自定义方法到vue实例上,实现全局访问 config.NotVuePlugins.forEach(v => Vue.prototype[v["n"]] = v["v"]); const app = new Vue({ store, ...App }); app.$mount()