zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * @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')