lazy_use.js 1.01 KB
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'
// })