2020-05-22 02:11:32 +08:00
|
|
|
import Vue from "vue";
|
|
|
|
import App from "./App.vue";
|
|
|
|
import ElementUI from "element-ui";
|
|
|
|
import "element-ui/lib/theme-chalk/icon.css";
|
|
|
|
import "element-ui/lib/theme-chalk/notification.css";
|
|
|
|
import "element-ui/lib/theme-chalk/loading.css";
|
2020-05-29 18:47:55 +08:00
|
|
|
import axios from "@/plugin/axios";
|
2020-05-22 02:11:32 +08:00
|
|
|
import VueAxios from "vue-axios";
|
|
|
|
import router from "./router";
|
|
|
|
import i18n from "./i18n";
|
2020-05-14 03:24:35 +08:00
|
|
|
// store
|
2020-05-22 02:11:32 +08:00
|
|
|
import store from "@/store/index";
|
|
|
|
import VueClipboard from "vue-clipboard2";
|
|
|
|
import VueLazyload from "vue-lazyload";
|
|
|
|
import Viewer from "v-viewer";
|
|
|
|
import cdnpath from "./libs/util.cdn";
|
2020-05-30 19:28:20 +08:00
|
|
|
// 组件
|
|
|
|
import '@/components'
|
2020-05-22 02:11:32 +08:00
|
|
|
import "viewerjs/dist/viewer.css";
|
|
|
|
import "@/assets/style/theme/register.scss";
|
2020-04-24 19:43:00 +08:00
|
|
|
|
2020-05-22 02:11:32 +08:00
|
|
|
document.write(
|
|
|
|
`<script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="https://hm.baidu.com/hm.js?6be1011f95a1bfcdb2179fe2ae6e58fe";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s)})();</script>`
|
|
|
|
);
|
|
|
|
Vue.config.productionTip = false;
|
2020-05-31 01:02:42 +08:00
|
|
|
Vue.prototype.$cdnpath = cdnpath;
|
2020-05-22 02:11:32 +08:00
|
|
|
Vue.use(ElementUI);
|
|
|
|
Vue.use(VueAxios, axios);
|
|
|
|
Vue.use(VueClipboard);
|
|
|
|
Vue.use(VueLazyload, {
|
2020-05-31 01:02:42 +08:00
|
|
|
loading: cdnpath("images/airplane.gif"),
|
2020-05-22 02:11:32 +08:00
|
|
|
});
|
|
|
|
Vue.use(Viewer);
|
2020-04-23 11:46:23 +08:00
|
|
|
|
|
|
|
new Vue({
|
2020-05-02 01:25:28 +08:00
|
|
|
router,
|
2020-05-14 03:24:35 +08:00
|
|
|
store,
|
2020-05-02 20:54:21 +08:00
|
|
|
i18n,
|
2020-05-22 02:11:32 +08:00
|
|
|
render: (h) => h(App),
|
2020-05-16 04:13:50 +08:00
|
|
|
mounted() {
|
2020-05-22 02:11:32 +08:00
|
|
|
this.$store.dispatch("acrou/view/load");
|
|
|
|
},
|
|
|
|
}).$mount("#app");
|