main.js 768 B

123456789101112131415161718192021222324252627282930
  1. import Vue from "vue";
  2. import App from "./App.vue";
  3. import router from "./router";
  4. import store from "./store";
  5. import GLOBAL from "./config";
  6. import globalVuePlugins from "./plugins/globalVuePlugins";
  7. import "./plugins/axios";
  8. import "./plugins/filters";
  9. // https://github.com/RobinCK/vue-ls
  10. import VueLocalStorage from "vue-ls";
  11. import ElementUI from "element-ui";
  12. import "element-ui/lib/theme-chalk/index.css";
  13. import "./assets/styles/index.scss";
  14. import JsonViewr from "vue-json-viewer";
  15. Vue.use(ElementUI, { size: "small" });
  16. Vue.use(VueLocalStorage, { storage: "session" });
  17. Vue.use(globalVuePlugins);
  18. Vue.use(JsonViewr);
  19. Vue.prototype.GLOBAL = GLOBAL;
  20. Vue.config.productionTip = false;
  21. new Vue({
  22. router,
  23. store,
  24. render: h => h(App)
  25. }).$mount("#app");