78 lines
2.5 KiB
HTML
78 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<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>
|
|
<script>
|
|
(function () {
|
|
var locationObject = window.location || {};
|
|
var currentHref = String(locationObject.href || "");
|
|
var currentHash = String(locationObject.hash || "");
|
|
var currentSearch = String(locationObject.search || "");
|
|
var malformedPathPattern =
|
|
/(?:%3C%=%20BASE_URL%20%%3E|%3C%=%20VUE_APP_INDEX_CSS_HASH%20%%3E|<%=\s*BASE_URL\s*%>|<%=\s*VUE_APP_INDEX_CSS_HASH\s*%>|VUE_APP_INDEX_CSS_HASH|%%3Estatic\/index)/i;
|
|
|
|
if (!malformedPathPattern.test(currentHref)) {
|
|
return;
|
|
}
|
|
|
|
var normalizedQuery = currentSearch;
|
|
if (!normalizedQuery) {
|
|
var tokenMatcher = currentHref.match(
|
|
/(?:[?&#]|^)(token|access_token)=([^&#]+)/i
|
|
);
|
|
if (tokenMatcher && tokenMatcher[2]) {
|
|
normalizedQuery = "?token=" + tokenMatcher[2];
|
|
}
|
|
}
|
|
|
|
var normalizedRoutePath = "/";
|
|
if (currentHash.indexOf("#/") === 0) {
|
|
var hashRoute = currentHash.slice(1);
|
|
var hashQueryIndex = hashRoute.indexOf("?");
|
|
if (hashQueryIndex > -1) {
|
|
if (!normalizedQuery) {
|
|
normalizedQuery = hashRoute.slice(hashQueryIndex);
|
|
}
|
|
hashRoute = hashRoute.slice(0, hashQueryIndex);
|
|
}
|
|
normalizedRoutePath = hashRoute || "/";
|
|
}
|
|
|
|
if (normalizedRoutePath.charAt(0) !== "/") {
|
|
normalizedRoutePath = "/" + normalizedRoutePath;
|
|
}
|
|
|
|
var targetUrl = "/bmt" + normalizedRoutePath;
|
|
if (normalizedQuery) {
|
|
targetUrl += normalizedQuery;
|
|
}
|
|
|
|
window.location.replace(targetUrl);
|
|
})();
|
|
</script>
|
|
<title></title>
|
|
<!--preload-links-->
|
|
<!--app-context-->
|
|
<style>
|
|
html,
|
|
body,
|
|
#app {
|
|
min-height: 100%;
|
|
margin: 0;
|
|
background: #08162e;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="app"><!--app-html--></div>
|
|
<script type="module" src="/main.js"></script>
|
|
</body>
|
|
</html>
|