- 将高德地图的css放在index
<link rel="stylesheet" href="https://a.amap.com/jsapi_demos/static/demo-center/css/demo-center.css" />
- 引入高德地图,也是在index.html中添加,key需要在高德地图官网中申请
<script src="https://webapi.amap.com/maps?v=1.4.15&key=你的key值"></script>
- 在template中
<template>
<div class="hello">
<div id="container" :style="height"></div>
</div>
</te