|
|
@@ -5,9 +5,8 @@ import ElementUI from 'element-ui'
|
|
|
import axios from 'axios'
|
|
|
import MultiUpload from '../components/MultiUpload'
|
|
|
import SingleUpload from '../components/SingleUpload'
|
|
|
+import FileUpload from '../components/FileUpload'
|
|
|
import RichText from '../components/RichText'
|
|
|
-import VueI18n from 'vue-i18n'
|
|
|
-import VueAMap from 'vue-amap'
|
|
|
|
|
|
import 'normalize.css/normalize.css'
|
|
|
import 'element-ui/lib/theme-chalk/index.css'
|
|
|
@@ -15,17 +14,21 @@ import '../main.less'
|
|
|
import {format} from 'date-fns'
|
|
|
import zh from 'date-fns/locale/zh_cn'
|
|
|
|
|
|
-VueAMap.initAMapApiLoader({
|
|
|
- key: 'bf91055058a47a7dc387e40ab6256a5f',
|
|
|
- plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor', 'AMap.Geolocation'],
|
|
|
- v: '1.4.7'
|
|
|
-});
|
|
|
+// import VueI18n from 'vue-i18n'
|
|
|
+// import VueAMap from 'vue-amap'
|
|
|
+// Vue.use(VueI18n);
|
|
|
+// VueAMap.initAMapApiLoader({
|
|
|
+// key: 'bf91055058a47a7dc387e40ab6256a5f',
|
|
|
+// plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor', 'AMap.Geolocation'],
|
|
|
+// v: '1.4.7'
|
|
|
+// });
|
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
Vue.use(ElementUI);
|
|
|
-Vue.use(VueI18n);
|
|
|
+
|
|
|
Vue.component('multi-upload', MultiUpload);
|
|
|
Vue.component('single-upload', SingleUpload);
|
|
|
+Vue.component('file-upload', FileUpload);
|
|
|
Vue.component('rich-text', RichText);
|
|
|
const baseUrl = process.env.NODE_ENV === 'production' ? '../' : `http://${location.hostname}:8080`;
|
|
|
Vue.prototype.$baseUrl = baseUrl;
|