vue CLI项目使用腾讯地图获取当前位置
1.index.html
引入:
<script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"></script>
public目录下的index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content=