whychdw
2019-07-05 7ab97c4ada45550abc7f440d60549b249726a9ff
src/main.js
@@ -2,6 +2,7 @@
import iView from 'iview';
import VueRouter from 'vue-router';
import Routers from './router';
import store from './store';
import Util from './libs/util';
import App from './App.vue';
import 'iview/dist/styles/iview.css';
@@ -20,8 +21,10 @@
router.beforeEach((to, from, next) => {
    iView.LoadingBar.start();
    // console.log(to.meta);
    Util.title(to.meta.title);
    next();
});
router.afterEach((to, from, next) => {
@@ -32,5 +35,6 @@
new Vue({
    el: '#app',
    router: router,
    store,
    render: h => h(App)
});