Browse Source

no message

linwenxin 1 year ago
parent
commit
37278abca9
2 changed files with 28 additions and 28 deletions
  1. 26 26
      src/main.js
  2. 2 2
      vue.config.js

+ 26 - 26
src/main.js

@@ -50,43 +50,43 @@ window._AMapSecurityConfig = {
   serviceHost: 'https://jiasm.zfire.top/' + '_AMapService'
 }
 
-import '@zjlib/element-plugins/dest/element-plugins.css'
-import ElementPlugins, { AMap } from '@zjlib/element-plugins'
-Vue.use(ElementPlugins, {
-  // 表单页面表单属性配置
-  formAttributes: {
-    'label-position': 'right'
-  }
-  // // 操作记录配置
-  // operationRecord: function (options) {
-  //   // console.log(options.meta.moduleId)
-  //   // return new Promise((r, j) => {
-  //   //   r([[], []])
-  //   // })
-  // }
-})
-Vue.use(AMap)
-AMap.initAMapApiLoader({
-  // 高德的key
-  key: '5894bf90997454b0df3c3d60cab12f64',
-  version: '2.0',
-  plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.DistrictSearch']
-})
-
-// // 本地引用;
-// import ElementPlugins, { AMap } from '@packages'
+// import '@zjlib/element-plugins/dest/element-plugins.css'
+// import ElementPlugins, { AMap } from '@zjlib/element-plugins'
 // Vue.use(ElementPlugins, {
+//   // 表单页面表单属性配置
 //   formAttributes: {
 //     'label-position': 'right'
 //   }
+//   // // 操作记录配置
+//   // operationRecord: function (options) {
+//   //   // console.log(options.meta.moduleId)
+//   //   // return new Promise((r, j) => {
+//   //   //   r([[], []])
+//   //   // })
+//   // }
 // })
 // Vue.use(AMap)
 // AMap.initAMapApiLoader({
 //   // 高德的key
 //   key: '5894bf90997454b0df3c3d60cab12f64',
-//   plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch']
+//   version: '2.0',
+//   plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch', 'AMap.DistrictSearch']
 // })
 
+// 本地引用;
+import ElementPlugins, { AMap } from '@packages'
+Vue.use(ElementPlugins, {
+  formAttributes: {
+    'label-position': 'right'
+  }
+})
+Vue.use(AMap)
+AMap.initAMapApiLoader({
+  // 高德的key
+  key: '5894bf90997454b0df3c3d60cab12f64',
+  plugins: ['AMap.Geocoder', 'AMap.AutoComplete', 'AMap.PlaceSearch']
+})
+
 import '@/utils/time.js'
 import { getIPAdd } from '@/utils/lbs.js'
 

+ 2 - 2
vue.config.js

@@ -77,8 +77,8 @@ module.exports = {
     resolve: {
       alias: {
         '@': resolve('src'),
-        'element-ui': resolve('node_modules/@zjlib/element-ui2')
-        // '@packages': resolve('../element-plugins/packages')
+        'element-ui': resolve('node_modules/@zjlib/element-ui2'),
+        '@packages': resolve('../element-plugins/packages')
       },
       extensions: ['*', '.js', '.vue', '.json']
     },