- import Vue from 'vue'
- import App from './App'
- /* 全局引入 graceUI request 工具 */
- import graceUIRequest from './graceUI/jsTools/request.js'
- Vue.prototype.gRequest = graceUIRequest;
- Vue.config.productionTip = false;
- /* 封装 setData 函数 */
- Vue.prototype.setData = function(data){
- for(let k in data){this[k] = data[k];}
- }
- App.mpType = 'app'
- const app = new Vue({
- ...App
- })
- app.$mount()
|