lazy_use.js
1.01 KB
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
import Vue from 'vue'
import '@/utils/global-catch-error'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import Heatmapjs from 'heatmap.js'
import VueSimpleSVG from 'vue-simple-svg'
import Treeselect from '@riophae/vue-treeselect'
import '@riophae/vue-treeselect/dist/vue-treeselect.css'
import VueLazyload from 'vue-lazyload'
import 'jquery-form'
import * as Sentry from '@sentry/browser'
import { Vue as VueIntegration } from '@sentry/integrations'
const VueUploadComponent = require('vue-upload-component')
Vue.component('file-upload', VueUploadComponent)
Vue.component('treeselect', Treeselect)
Vue.use(ElementUI)
Vue.use(VueSimpleSVG)
Vue.use(VueLazyload, {
preLoad: 2.3,
})
process.env.NODE_ENV === "production" && Sentry.init({
dsn: 'https://eb44e9f470974e9eae6e025c51a42496@o399764.ingest.sentry.io/5257346',
integrations: [new VueIntegration({ Vue, attachProps: true })],
})
// 百度地图
// Vue.use(BaiduMap, {
// ak: '7eRXXHqcpdDuvgcqwWFyBGw5U7c5Iz6i'
// })