1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import Vue from 'vue'
- import App from './App.vue'
- import store from './lib/store'
- import '@/lazy'
- import '@/assets/css/dark.less'
- import '@/assets/css/style.less'
- import {router, routes} from './router'
- import NProgress from 'nprogress'
- import 'nprogress/nprogress.css'
- import utils from '@/lib/utils'
- import api from '@/api'
- Vue.use(utils)
- Vue.config.productionTip = false
- Vue.prototype.$routeConfig = routes
- Vue.prototype.$api = api
- NProgress.configure({
- easing: 'ease',
- speed: 500,
- showSpinner: false,
- trickleSpeed: 200,
- minimum: 0.3
- })
- router.beforeEach((to, from, next) => {
- NProgress.start()
- next()
- })
- router.afterEach(() => {
- NProgress.done()
- })
- new Vue({
- store,
- router,
- render: h => h(App)
- }).$mount('#app')
|