Files
2026-08-21 10:23:08 +08:00

50 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script>
;(function installLegacyRouteCompat() {
function normalizeLegacyRoute() {
var currentHash = window.location.hash
var normalizedHash = currentHash
.replace(/^#\/pages\/third-app(?=\/)/, "#/pages/thirdApp")
.replace(/^#\/third-app(?=\/)/, "#/pages/thirdApp")
.replace(/^#\/thirdApp(?=\/)/, "#/pages/thirdApp")
if (normalizedHash !== currentHash) {
window.__ROUTE_COMPAT__ = { from: currentHash, to: normalizedHash }
console.info("[route-compat]", currentHash, "->", normalizedHash)
window.history.replaceState(
window.history.state,
"",
window.location.pathname + window.location.search + normalizedHash,
)
}
}
window.addEventListener("popstate", normalizeLegacyRoute)
window.addEventListener("hashchange", normalizeLegacyRoute)
normalizeLegacyRoute()
})()
</script>
<script src="https://dapp.tmuyun.com/oss-static/app/jcommind.js"></script>
<script src="https://g.alicdn.com/gdt/jsapi/1.9.55-beta.12/index.js"></script>
<script>
var coverSupport =
"CSS" in window && typeof CSS.supports === "function" && (CSS.supports("top: env(a)") || CSS.supports("top: constant(a)"))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ", viewport-fit=cover" : "") +
'" />',
)
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>