app.js
679 Bytes
import Vue from 'vue';
import VueCookie from 'vue-cookie';
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 'common.scss';
let router = new Router({routes: Routers});
Vue.use(yohoPluginCore, {router});
Vue.use(yohoPluginPurview);
Vue.use(yohoPluginUser);
Vue.use(VueCookie);
new Vue({
el: '#app',
router,
template: '<App/>',
components: {App}
});