|
|
@@ -69,7 +69,11 @@
|
|
|
:center="center"
|
|
|
:zoom="zoom"
|
|
|
@init="handleInit"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <el-amap-marker
|
|
|
+ :position="center"
|
|
|
+ />
|
|
|
+ </el-amap>
|
|
|
</div>
|
|
|
<div style="height: 40px;flex-shrink: 0;" />
|
|
|
</template>
|
|
|
@@ -83,7 +87,7 @@
|
|
|
import SimpleRichHtml from '@/components/display/SimpleRichHtml.vue';
|
|
|
import { useRoute } from 'vue-router';
|
|
|
import { ref, watch } from 'vue';
|
|
|
-import { ElAmap } from '@vuemap/vue-amap';
|
|
|
+import { ElAmap, ElAmapMarker } from '@vuemap/vue-amap';
|
|
|
import VillageApi, { VillageMenuListItem } from '@/api/village/VillageApi';
|
|
|
import ImageSwiper from '@/components/content/ImageSwiper.vue';
|
|
|
|
|
|
@@ -135,13 +139,6 @@ async function loadInfo() {
|
|
|
center.value = [118.850895, 28.982787];
|
|
|
}
|
|
|
|
|
|
- console.log('map.value', map);
|
|
|
-
|
|
|
-
|
|
|
- map?.add(new AMap.Marker({
|
|
|
- position: center.value as [number, number]
|
|
|
- }));
|
|
|
-
|
|
|
const menu = await VillageApi.getVillageMenuList(id);
|
|
|
|
|
|
loading.value = false;
|