app.js 682 B

12345678910111213141516171819202122232425262728
  1. // The Vue build version to load with the `import` command
  2. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  3. import Vue from 'vue';
  4. import App from '@/components/App.vue';
  5. // include
  6. import '@/config/include.js';
  7. // 通用store
  8. import store from '@/store/index.js';
  9. // router
  10. import router from './router/index.js';
  11. // XML转json
  12. import X2JS from 'x2js' // xml数据处理插件
  13. Vue.prototype.$x2js = new X2JS() // 创建x2js对象,挂到vue原型上
  14. // 关闭生产模式下给出的提示
  15. Vue.config.productionTip = false;
  16. /* eslint-disable no-new */
  17. new Vue({
  18. el: '#app',
  19. router,
  20. store,
  21. components: { App },
  22. template: '<App/>'
  23. });