feat(html): 将标题改为环境变量定义

1. 修改页面语言
2. 将标题改为环境变量定义
3. 调整部分代码的作用域
This commit is contained in:
悠静萝莉 2024-09-08 05:39:54 +08:00
parent 2a9e3722b8
commit d5cd2f5920
No known key found for this signature in database
GPG Key ID: 4EDF1CA1CEA8EBCC

View File

@ -1,16 +1,17 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="zh">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TDesign Vue Next Starter</title> <title>%VITE_BASE_TITLE%</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
<script language="javascript"> <script language="javascript">
if (window.location.host === 'tdesign.tencent.com') { if (window.location.host === 'tdesign.tencent.com') {
window.global = window;
const aegis = new Aegis({ const aegis = new Aegis({
id: 'rDISNMyXgqWDFPyHMB', // 项目ID即上报key id: 'rDISNMyXgqWDFPyHMB', // 项目ID即上报key
reportAssetSpeed: true, // 静态资源测速 reportAssetSpeed: true, // 静态资源测速
@ -18,8 +19,4 @@
} }
</script> </script>
</body> </body>
<script>
window.global = window;
</script>
</html> </html>