This commit is contained in:
姚宇浩 2024-09-27 17:12:47 +08:00
parent 50454c3ada
commit 003c1261c1
3 changed files with 8 additions and 5 deletions

View File

@ -6,14 +6,14 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>公共服务一体化驾驶舱</title>
<script type="text/javascript"
src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=2KLQUajGSpNL2DInxT6BwdPklMNpG3hw"></script>
<!-- <script type="text/javascript"
src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=2KLQUajGSpNL2DInxT6BwdPklMNpG3hw"></script> -->
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
<!-- <script type="text/javascript" src="/baiduMap.js"></script> -->
<script type="text/javascript" src="/baiduMap.js"></script>
</body>
</html>

5
public/baiduMap.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -190,9 +190,7 @@ const timeT=ref(null);
onMounted(() => {
// updateClock
updateClock();
data.nowTab = router.currentRoute.value.fullPath;
// updateClock
timeT.value=setInterval(updateClock, 1000);
});