123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import Vue from 'vue'
- import App from './App.vue'
- import router from './router'
- import store from './store'
- //element-ui
- import ElementUI from 'element-ui';
- Vue.use(ElementUI);
- Vue.config.productionTip = false
- import dayjs from 'dayjs';
- Vue.prototype.$dayjs = dayjs;
- const avatar = () => import('./components/common/avatar');
- Vue.component('avatar', avatar)
- import loading from './loading/loading';
- Vue.use(loading);
- import field from './config/field.js'
- Vue.prototype.$field = field;
- import message from './uitls/message.js';
- Vue.prototype.$msg = message;
- //用户聊天
- import chat from './uitls/chat/customer.js'
- chat.init();
- Vue.prototype.$chat = chat;
- //客服聊天
- import chats from './uitls/chat/customerServe.js'
- chats.init();
- Vue.prototype.$chats = chats;
- Vue.prototype.$confirm = (title, callback) => {
- return ElementUI.MessageBox.confirm(title, 'WORKARK提示', {
- confirmButtonText: '确 定',
- cancelButtonClass: 'cancel',
- confirmButtonClass: 'confirm',
- cancelButtonText: '取 消',
- type: 'warning'
- }).then(callback).catch(() => {});
- };
- import './uitls/permission.js'
- import './router/permission.js'
- new Vue({
- router,
- store,
- render: h => h(App),
- }).$mount('#app')
|