app.js
607 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 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
});
new Vue({
el: '#app',
router: new Router({routes: Routers}),
template: '<App/>',
components: {App}
});