You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.0 KiB
37 lines
1.0 KiB
import Vue from 'vue'
|
|
import App from './App'
|
|
import router from './router'
|
|
import ElementUI from 'element-ui';
|
|
import './assets/style/im.scss';
|
|
import './assets/iconfont/iconfont.css';
|
|
|
|
import httpRequest from './api/httpRequest';
|
|
import * as socketApi from './api/wssocket';
|
|
import * as messageType from './api/messageType';
|
|
import emotion from './api/emotion.js';
|
|
import element from './api/element.js';
|
|
import store from './store';
|
|
import * as enums from './api/enums.js';
|
|
import * as date from './api/date.js';
|
|
import './utils/directive/dialogDrag';
|
|
|
|
Vue.use(ElementUI);
|
|
// 挂载全局
|
|
Vue.prototype.$wsApi = socketApi;
|
|
Vue.prototype.$msgType = messageType
|
|
Vue.prototype.$date = date;
|
|
Vue.prototype.$http = httpRequest // http请求方法
|
|
Vue.prototype.$emo = emotion; // emo表情
|
|
Vue.prototype.$elm = element; // 元素操作
|
|
Vue.prototype.$enums = enums; // 枚举
|
|
Vue.prototype.$eventBus = new Vue(); // 全局事件
|
|
Vue.config.productionTip = false;
|
|
|
|
new Vue({
|
|
el: '#app',
|
|
// 配置路由
|
|
router,
|
|
store,
|
|
render: h => h(App)
|
|
})
|
|
|
|
|