/* * @Date: 2023-02-07 11:00:50 * @LastEditors: vann 984797170@qq.com * @LastEditTime: 2023-10-17 16:42:39 * @FilePath: /pengding/cts-web/src/main.js */ import Vue from 'vue' import App from './App.vue' import router from './router/index' import store from './store/index' import './plugins/element.js' import './style/index.styl' import './icon/iconfont.css' import _ from 'lodash' import dayjs from 'dayjs' import common from '@/utils/common' import G2 from '@antv/g2' import vuePlugin from '../src/plugins/vuePlugin.js' Vue.prototype._ = _ Vue.prototype.dayjs = dayjs Vue.prototype.getprovince = common.getprovince Vue.prototype.$fixNumAdd = common.fixNumAdd Vue.prototype.$finxAdd = common.finxAdd Vue.prototype.getcity = common.getcity Vue.prototype.window = window Vue.config.devtools = true Vue.config.productionTip = false Vue.use(G2) Vue.use(vuePlugin) // 提交以后禁用按钮一段时间,防止重复提交,如需使用请在对应有点击事件的标签加上v-no-more-click即可 Vue.directive('noMoreClick', { inserted(el, binding) { el.addEventListener('click', e => { el.classList.add('is-disabled'); el.disabled = true; setTimeout(() => { el.disabled = false; el.classList.remove('is-disabled'); }, 3000) }) } }); new Vue({ router, store, render: h => h(App) }).$mount('#app')