D4THYL3\long 3 years ago
parent
commit
01ef0d6218
3 changed files with 4 additions and 1 deletions
  1. BIN
      dist.zip
  2. 3 0
      src/components/02.vue
  3. 1 1
      vue.config.js

BIN
dist.zip


+ 3 - 0
src/components/02.vue

@@ -174,6 +174,9 @@ export default {
             panToLocation: true,     //定位成功后将定位到的位置作为地图中心点,默认:true
             zoomToAccuracy: true      //定位成功后调整地图视野范围使定位位置及精度范围视野内可见,默认:false
           })
+          let marker = new AMap.Marker({
+            postion: [this.longitude, this.latitude],
+          })
         })
         .catch(e => {
           console.log(e);

+ 1 - 1
vue.config.js

@@ -1,6 +1,6 @@
 const { defineConfig } = require('@vue/cli-service')
 module.exports = defineConfig({
-// publicPath:  '/sc-oa',
+  publicPath:  '/sc-oa',
   transpileDependencies: true,
   devServer: {
     host: 'localhost', // 本地地址