Blame view

src/main.js 749 Bytes
52c50939   liuqimichale   init
1
2
3
4
  // The Vue build version to load with the `import` command
  // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  import Vue from 'vue'
  import App from './App'
adf82b69   liuqimichale   调取接口
5
  import store from './store/store'
cb40959e   liuqimichale   添加mock 数据
6
  import './mock/mock'
9fcaa52c   liuqimichale   打包
7
  require ('./styles/reset.css')/*引入重置样式*/
237f69eb   liuqimichale   收费员
8
  // import '@/styles/mixin.scss'/*引入公共样式*/
9a83dd61   liuqimichale   全局注册util方法
9
10
11
12
  import * as filters from './filters/filters'
  import util from './utils/formatNum'
  Vue.prototype.$util = util
  
adf82b69   liuqimichale   调取接口
13
14
15
  import _global from './api/variables'
  Vue.prototype.GLOBAL = _global
  
9a83dd61   liuqimichale   全局注册util方法
16
17
18
  Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
  })
e86b025b   liuqimichale   add
19
  //...
52c50939   liuqimichale   init
20
21
22
23
24
  Vue.config.productionTip = false
  
  /* eslint-disable no-new */
  new Vue({
    el: '#app',
adf82b69   liuqimichale   调取接口
25
    store,
52c50939   liuqimichale   init
26
27
28
    components: { App },
    template: '<App/>'
  })