Blame view

test/main.js 604 Bytes
7fa943eb   梁灏   init
1
2
3
4
5
  /**
   * Created by aresn on 16/6/20.
   */
  import Vue from 'vue';
  import VueRouter from 'vue-router';
4df4ea19   jingsam   optimize project ...
6
  import App from './app.vue';
c571d9ec   梁灏   add a dialog to f...
7
  import iView from '../src/index';
d509d2b2   梁灏   fixed #192
8
  // import locale from '../src/locale/lang/en-US';
e5ac7925   梁灏   update Rate
9
  import locale from '../src/locale/lang/zh-CN';
7fa943eb   梁灏   init
10
11
  
  Vue.use(VueRouter);
e5ac7925   梁灏   update Rate
12
  Vue.use(iView, { locale });
7fa943eb   梁灏   init
13
14
15
16
17
  
  // 开启debug模式
  Vue.config.debug = true;
  
  // 路由配置
1f561319   梁灏   update webpack co...
18
19
20
21
22
  const router = new VueRouter({
      routes: [
          {
              path: '/affix',
              component: require('./routers/affix.vue')
0a48ac45   梁灏   Input add readonl...
23
          }
1f561319   梁灏   update webpack co...
24
      ]
7fa943eb   梁灏   init
25
26
  });
  
1f561319   梁灏   update webpack co...
27
28
29
30
  new Vue({
      el: '#app',
      router: router,
      render: h => h(App)
7fa943eb   梁灏   init
31
  });