You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1023 B
41 lines
1023 B
import Vue from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router'
|
|
import store from './store'
|
|
import vueParticles from 'vue-particles'
|
|
import Vcomp from './components/index'
|
|
import Toast from './components/toast'
|
|
|
|
import axios from 'axios'
|
|
import dayjs from 'dayjs'
|
|
import Pagination from "@/components/Pagination";
|
|
|
|
|
|
import '@/assets/styles/base.scss'
|
|
import '@/assets/styles/common.scss'
|
|
import '@/assets/iconfont/iconfont.css'
|
|
// import loadingViewerVue from 'loading-view-vue'
|
|
// Vue.use(loadingViewerVue)
|
|
import ElementUI from "element-ui";
|
|
import "element-ui/lib/theme-chalk/index.css";
|
|
Vue.use(ElementUI);
|
|
Vue.use(vueParticles)
|
|
Vue.use(Vcomp)
|
|
Vue.config.productionTip = false
|
|
Vue.prototype.axios = axios
|
|
Vue.prototype.dayjs = dayjs
|
|
Vue.prototype.$Toast = Toast
|
|
// 全局组件挂载
|
|
Vue.component('Pagination', Pagination)
|
|
router.beforeEach((to, from, next) => {
|
|
if (to.meta.title) {
|
|
document.title = to.meta.title;
|
|
}
|
|
next();
|
|
})
|
|
|
|
new Vue({
|
|
router,
|
|
store,
|
|
render: h => h(App),
|
|
}).$mount('#app')
|
|
|