app.js 673 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 yohoPluginPurview from './plugins/yoho-plugin-purview';
import yohoPluginUser from './plugins/yoho-plugin-user';
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(yohoPluginPurview);
Vue.use(yohoPluginUser);

new Vue({
    el: '#app',
    router,
    template: '<App/>',
    components: {App}
});