feat: 添加mock,完成高德地图组件

This commit is contained in:
张益铭
2021-03-29 16:38:52 +08:00
parent 3c8e0c5277
commit 7545003e57
12 changed files with 668 additions and 57 deletions

View File

@@ -1,11 +1,15 @@
<template>
<div>
<div class="map">
<amap />
</div>
</template>
<script lang='ts'>
import amap from "../../../components/map/amap.vue";
export default {
components: {
amap
},
setup(){
return{
@@ -15,5 +19,8 @@ export default {
</script>
<style scoped>
.map {
width: 100%;
height: 89vh;
}
</style>

View File

@@ -10,11 +10,8 @@
<script lang="ts">
import {
ref,
reactive,
onMounted,
onBeforeMount,
getCurrentInstance,
} from "vue";
import info, { ContextProps } from "../components/info/index.vue";
import { getVerify, getLogin } from "../api/user";