main.js 707 B

12345678910111213141516171819202122232425262728293031
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store' // 引入 vuex
  4. import common from './utiils/common.js'
  5. import uView from "uview-ui";
  6. Vue.use(uView);
  7. Vue.prototype.$noMultipleClicks = common.noMultipleClicks;
  8. // 听云配置
  9. const monitor = require('./tingyun-mp-agent.js');
  10. monitor.config({
  11. beacon: 'https://beacon-mp.tingyun.com',
  12. key: '3eAqVFltDOs',
  13. id: 'sa9cwEuaPL4',
  14. sampleRate: 1
  15. })
  16. Vue.config.productionTip = false
  17. App.mpType = 'app'
  18. //将一些常用的方法定义在过滤器上
  19. import * as filters from './utiils/filters.js'
  20. Object.keys(filters).forEach(e => {
  21. Vue.filter(e, filters[e])
  22. });
  23. const app = new Vue({
  24. ...App,
  25. store
  26. })
  27. app.$mount()