goindex-theme-r/src/main.js

40 lines
1.0 KiB
JavaScript
Raw Normal View History

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'
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'
// store
import store from '@/store/index'
2020-05-13 05:19:42 +08:00
import VueClipboard from 'vue-clipboard2'
import infiniteScroll from 'vue-infinite-scroll'
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-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)
Vue.use(infiniteScroll)
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,
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')