main.js 458 B

12345678910111213141516171819202122
  1. import Vue from 'vue'
  2. import App from './App'
  3. import { config } from './api/request/config.js'
  4. Vue.config.productionTip = false
  5. /****** 全局图片服务地址方法 ******/
  6. Vue.prototype.imagesUrl = function(imgUrl){
  7. return config.imagesUrl + imgUrl
  8. }
  9. /****** 全局版本字符返回 ******/
  10. Vue.prototype.versionField = function(imgUrl){
  11. return config.VERSION_DIFFERENCE_FIELD
  12. }
  13. App.mpType = 'app'
  14. const app = new Vue({
  15. ...App
  16. })
  17. app.$mount()