feat: MapLibre integration + app init + deploy
- Map pages wired to real MapLibre engine (MapManager/Factory/composables) - mapMonitoring page with device markers and popups - App.vue with keep-alive + route transitions - main.ts with global error handlers + MapLibre CSS - index.html with WeChat/WxJSBridge detection - Deployed to ygcxy.top (nginx-static via Traefik)
This commit is contained in:
15
index.html
15
index.html
@@ -8,6 +8,21 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<!-- WeixinJSBridge 检测 — 判断是否在微信环境中运行 -->
|
||||
<script>
|
||||
(function () {
|
||||
var ua = navigator.userAgent.toLowerCase()
|
||||
var isWechat = ua.indexOf('micromessenger') !== -1
|
||||
// 标记微信环境,供应用内业务逻辑判断(如微信 JSSDK 授权)
|
||||
window.__IS_WEIXIN__ = isWechat
|
||||
// 如果是微信环境,监听 WeixinJSBridge 就绪事件
|
||||
if (isWechat) {
|
||||
document.addEventListener('WeixinJSBridgeReady', function () {
|
||||
window.__WEIXIN_BRIDGE_READY__ = true
|
||||
}, false)
|
||||
}
|
||||
})()
|
||||
</script>
|
||||
<!-- 运行时全局配置 — 开发环境 -->
|
||||
<script src="/config/globalConfig.dev.js"></script>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
|
||||
Reference in New Issue
Block a user