import Vue from 'vue'; import { http } from 'plugins/request/index'; import App from './App'; // import store from './store'; Vue.config.productionTip = false; Vue.prototype.$http = http; /** * 打开某个页面 * @param {string} path 页面完成路径 * @param {string} query 参数字符串a=x&b=y */ Vue.prototype.openPage = function(path, query = '') { let url = query ? `${path}?${query}` : path; uni.navigateTo({ url }); }; App.mpType = 'app'; const app = new Vue({ // store, ...App, }); app.$mount();