import Vue from 'vue' import App from './App' // 假设您项目中已使用VueX import store from '@/store' Vue.prototype.$store = store // 工具 import '@/plugins/utils.js'; //权限配置中心 import base from '@/config/baseUrl' Vue.prototype.$base = base; //挂载全局http请求 import $http from '@/config/api' Vue.prototype.$http = $http; // 挂载全局登录 import { login } from '@/config/login'; Vue.prototype.$login = login; Vue.config.productionTip = false App.mpType = 'app' // 引入全局uView import uView from "uview-ui"; Vue.use(uView); import 'default-passive-events' const app = new Vue({ store, ...App }) app.$mount()