Blame view

src/main.js 574 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'
cb40959e   liuqimichale   添加mock 数据
5
  import './mock/mock'
52c50939   liuqimichale   init
6
  import '@/styles/reset.css'/*引入重置样式*/
9a83dd61   liuqimichale   全局注册util方法
7
8
9
10
11
12
13
  import * as filters from './filters/filters'
  import util from './utils/formatNum'
  Vue.prototype.$util = util
  
  Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
  })
52c50939   liuqimichale   init
14
15
16
17
18
19
20
21
22
  
  Vue.config.productionTip = false
  
  /* eslint-disable no-new */
  new Vue({
    el: '#app',
    components: { App },
    template: '<App/>'
  })