app.js
585 Bytes
import Vue from 'vue';
import Router from 'vue-router';
import App from './pages/app';
import Routers from './pages';
import yohoPluginCore from './plugins/yoho-plugin-core';
import yohoPluginAuth from './plugins/yoho-plugin-auth';
import './filters';
import './directives';
import 'iview/dist/styles/iview.css';
import 'font-awesome/css/font-awesome.css';
let router = new Router({
routes: Routers,
mode: 'history'
});
Vue.use(yohoPluginCore, {router});
Vue.use(yohoPluginAuth);
Vue.render({
el: '#app',
router,
template: '<App/>',
components: {App}
});