main.js 1.2 KB
/*
 * @Descripttion:
 * @version: 1.0.0
 * @Author: limin
 * @Date: 2021-08-13 14:12:11
 * @LastEditors: huyue
 * @LastEditTime: 2022-05-27 16:23:01
 * @FilePath: \scrm\scrm-sub-blog\src\main.js
 */
import Vue from 'vue'
import apis from './api'
import './public-path'
// import '@/assets/css/public.scss'
import '@/components'
// import 'glsx-components/dist/glsx-components.css'
import { start } from '@/setup'
import { setMinHeight } from '@/common/constant'
import VueAMap from 'vue-amap'
Vue.use(VueAMap)
// 初始化vue-amap
VueAMap.initAMapApiLoader({
  key: 'bd290dc27d0945959280753215ddda71', // 这里写你申请的高德地图的key
  plugin: ['AMap.PlaceSearch', 'AMap.Geocoder', 'AMap.Geolocation'],
  v: '1.4.15'
})
Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
Vue.prototype.setMinHeight = setMinHeight
Vue.prototype.defaultLabelWidth = '154px'
start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_merchant = params => Vue.prototype.$http_merchant(params)