main.js 725 B

12345678910111213141516171819202122232425262728
  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. Vue.use(ElementUI, { size: "small" });
  15. Vue.use(VueLocalStorage, { namespace: "vs_", storage: "session" });
  16. Vue.use(globalVuePlugins);
  17. Vue.prototype.GLOBAL = GLOBAL;
  18. Vue.config.productionTip = false;
  19. new Vue({
  20. router,
  21. store,
  22. render: h => h(App)
  23. }).$mount("#app");