main.js 414 B

123456789101112131415
  1. import Vue from 'vue'
  2. import App from './App'
  3. /* 全局引入 graceUI request 工具 */
  4. import graceUIRequest from './graceUI/jsTools/request.js'
  5. Vue.prototype.gRequest = graceUIRequest;
  6. Vue.config.productionTip = false;
  7. /* 封装 setData 函数 */
  8. Vue.prototype.setData = function(data){
  9. for(let k in data){this[k] = data[k];}
  10. }
  11. App.mpType = 'app'
  12. const app = new Vue({
  13. ...App
  14. })
  15. app.$mount()