46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
<!doctype html>
|
|
<html lang="zh_CN">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<link rel="icon" type="image/svg+xml" href="/vite.svg"/>
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" name="viewport" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
|
|
<title></title>
|
|
</head>
|
|
<style>
|
|
html, body, #app {
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0 !important;
|
|
}
|
|
</style>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/static/jweixin-1.3.2.js"></script>
|
|
<script type="module" src="/src/main.ts"></script>
|
|
</body>
|
|
<script>
|
|
|
|
document.title = '\u200E'
|
|
const url = window.location.href;
|
|
|
|
const arr = url.indexOf('?') !== -1 ? url.split('?')[1].replace('#/', '') : '';
|
|
|
|
let strArr = arr.split('&')
|
|
// const hrefParams = qs.parse(arr);
|
|
for (const item of strArr) {
|
|
sessionStorage.setItem(item.substring(0, item.indexOf('=')), item.substring(item.indexOf('=') + 1));
|
|
}
|
|
|
|
let scheme = sessionStorage.getItem('scheme');
|
|
let host = sessionStorage.getItem('host');
|
|
let hostAfter = sessionStorage.getItem('hostAfter') ? `/${sessionStorage.getItem('hostAfter')}` : '';
|
|
|
|
sessionStorage.setItem('url', `${scheme}://${host}${hostAfter}`)
|
|
// sessionStorage.setItem('url', 'http://cqyt.dev.yg.dt.io')
|
|
// sessionStorage.setItem('tokenF', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InNoYW5nbGluZyIsImlkZW50aWZpZXIiOiIwMDA3ZWUyZGZkYTA0NmY0OTJkNTg2NDRjMjFlMzAxOCIsImV4cCI6MTY5NDg0NDg5MX0.KBeuTR8V95-bghW3w0dN6EHpYByTTK_tApzWC6iHwzc')
|
|
</script>
|
|
</html>
|