app.js
680 Bytes
import Vue from 'vue';
import iView from 'iview';
import VueCookie from 'vue-cookie';
import Router from 'vue-router';
import App from './pages/app';
import Routers from './pages';
import routerHook from 'router-hook';
import yohoPlugin from './plugins/yoho-plugin';
import './filters';
import './directives';
import 'iview/dist/styles/iview.css';
import 'common.scss';
import config from 'config';
Vue.use(Router);
Vue.use(iView);
Vue.use(VueCookie);
Vue.use(yohoPlugin, {
config,
apiDomains: config.apiDomains
});
let router = new Router({routes: Routers});
routerHook(router);
new Vue({
el: '#app',
router,
template: '<App/>',
components: {App}
});