text: // The Vue build version to load with the `import` command
  // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  import Vue from 'vue';
  import App from './App';
  import router from './router';
  // import store from '@/libs/relic';
  
  import oo from '@/components/base/index.js';
  
  Vue.use(oo);
  
  router.beforeEach((to, from, next) => {
    // if (to.matched.some(record => record.meta.requiresAuth)) {
    //   // this route requires auth, check if logged in
    //   // if not, redirect to login page.
    //   if (!store.isLogin) {
    //     next({
    //       path: '/login',
    //       query: {
    //         redirect: to.fullPath
    //       }
    //     })
    //   } else {
    //     next()
    //   }
    // } else {
    //   next() // 确保一定要调用 next()
    // }
    next();
  });
  
  /* eslint-disable no-undef */
  if(process.env.NODE_ENV == 'development') {
    window.log = console.log;
  }
  
  Vue.config.productionTip = false;
  
  /* eslint-disable no-new */
  new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: {
      App
    }
  })