mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 07:48:22 +08:00
feat(html): 将标题改为环境变量定义
1. 修改页面语言 2. 将标题改为环境变量定义 3. 调整部分代码的作用域
This commit is contained in:
parent
2a9e3722b8
commit
d5cd2f5920
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user