49 lines
1.4 KiB
JavaScript
49 lines
1.4 KiB
JavaScript
import Vue from 'vue'
|
|
import App from './App'
|
|
import store from './store' // store
|
|
import plugins from './plugins' // plugins
|
|
import './permission' // permission
|
|
import request from './utils/request.js' // http
|
|
import Vant from 'vant'
|
|
import AMapLoader from '@amap/amap-jsapi-loader'
|
|
import moment from 'moment'
|
|
// 字典标签组件
|
|
import DictTag from '@/components/DictTag'
|
|
import FileUpload from '@/components/FileUpload/index'
|
|
import FilePreview from '@/components/FilePreview/index'
|
|
import ImagePreview from "@/components/ImagePreview/index";
|
|
|
|
Vue.component('DictTag', DictTag)
|
|
Vue.component('FileUpload', FileUpload)
|
|
Vue.component('FilePreview', FilePreview)
|
|
Vue.component('ImagePreview', ImagePreview)
|
|
|
|
//字典
|
|
import sysDictData from './components/SysDictData'
|
|
//系统参数
|
|
import SysConfigData from './components/SysConfigData/index'
|
|
|
|
AMapLoader.load({
|
|
key: "6ab3452804ba35050880b5e047436853", // 申请好的Web端开发者Key,首次调用 load 时必填
|
|
version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
|
|
plugins: ['AMap.PolylineEditor'], // 需要使用的的插件列表,如比例尺'AMap.Scale'等
|
|
})
|
|
|
|
Vue.use(plugins)
|
|
Vue.use(Vant)
|
|
Vue.use(sysDictData)
|
|
Vue.use(SysConfigData)
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.prototype.$store = store
|
|
Vue.prototype.$http = request
|
|
Vue.prototype.$moment = moment
|
|
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
|
|
app.$mount()
|