import Vue from 'vue';
import App from './App';
import iView from 'iview';
import {Anchor} from 'iview'
import {AnchorLink} from 'iview'
import 'iview/dist/styles/iview.css';
import store from './store/index';
import router from './route/router';
import lodash from 'lodash';
import axios from 'axios';
import $ from 'jquery';
window.$=$;
import GaeaEditor from '../../myPlugin/page-ide';

//import GaeaEditor from 'page-ide';
import PageCore from 'page-core-xian';
import './styles/default/index.less';
import './assets/font/iconfont.css'
debugger;
 //import GaeaEditor from 'page-ide';
//加载自定义工具模块
import Bus from './assets/js/bus'
import ServiceRequest from './assets/js/request'
window.ServiceRequest=ServiceRequest;
window.Bus=Vue.prototype.$bus=Bus;
Vue.use(PageCore);
Vue.use(iView);
Vue.use(GaeaEditor, {store});
Vue.prototype.$http = axios;
//require('./assets/js/mocks.js');
Vue.component('Anchor', Anchor);
window._ = Vue.prototype._ = lodash;
Vue.config.productionTip = false;
new Vue({
    el: '#app',
    router,
    store,
    template: '<App/>',
    components: {App,AnchorLink}
});
