2020-04-23 11:46:23 +08:00
|
|
|
import Vue from 'vue'
|
|
|
|
import App from './App.vue'
|
2020-05-07 03:29:32 +08:00
|
|
|
import ElementUI from 'element-ui'
|
2020-05-14 03:24:35 +08:00
|
|
|
import 'element-ui/lib/theme-chalk/icon.css'
|
2020-05-13 05:19:42 +08:00
|
|
|
import 'element-ui/lib/theme-chalk/notification.css'
|
|
|
|
import 'element-ui/lib/theme-chalk/loading.css'
|
2020-04-24 19:43:00 +08:00
|
|
|
import axios from '@utils/axios'
|
|
|
|
import VueAxios from 'vue-axios'
|
2020-05-02 01:25:28 +08:00
|
|
|
import router from './router'
|
2020-05-02 20:54:21 +08:00
|
|
|
import i18n from './i18n'
|
2020-05-14 03:24:35 +08:00
|
|
|
// store
|
|
|
|
import store from '@/store/index'
|
2020-05-13 05:19:42 +08:00
|
|
|
import VueClipboard from 'vue-clipboard2'
|
2020-05-15 03:20:11 +08:00
|
|
|
import infiniteScroll from 'vue-infinite-scroll'
|
2020-05-16 19:58:25 +08:00
|
|
|
import VueLazyload from 'vue-lazyload'
|
|
|
|
import Viewer from 'v-viewer'
|
|
|
|
import 'viewerjs/dist/viewer.css'
|
2020-05-03 15:10:01 +08:00
|
|
|
import "@/assets/style/theme/register.scss"
|
2020-04-24 19:43:00 +08:00
|
|
|
|
2020-05-19 18:10:44 +08:00
|
|
|
document.write(`<script>var _hmt=_hmt||[];(function(){var hm=document.createElement("script");hm.src="https://hm.baidu.com/hm.js?b5880d23c0d350f0a4c8ac671320847e";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm,s);})();</script>`);
|
|
|
|
|
2020-04-23 11:46:23 +08:00
|
|
|
Vue.config.productionTip = false
|
2020-05-07 03:29:32 +08:00
|
|
|
Vue.use(ElementUI)
|
2020-04-24 19:43:00 +08:00
|
|
|
Vue.use(VueAxios,axios)
|
2020-05-13 05:19:42 +08:00
|
|
|
Vue.use(VueClipboard)
|
2020-05-15 03:20:11 +08:00
|
|
|
Vue.use(infiniteScroll)
|
2020-05-16 19:58:25 +08:00
|
|
|
Vue.use(VueLazyload,{
|
|
|
|
// error: 'dist/error.png',
|
|
|
|
loading: 'https://cloud.jsonpop.cn/go2index/vue/airplane.gif'
|
|
|
|
})
|
|
|
|
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-16 04:13:50 +08:00
|
|
|
render: h => h(App),
|
|
|
|
mounted() {
|
|
|
|
this.$store.dispatch('acrou/view/load')
|
|
|
|
}
|
2020-04-23 11:46:23 +08:00
|
|
|
}).$mount('#app')
|