mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-22 17:45:09 +08:00
feat(html): 将标题改为环境变量定义
1. 修改页面语言 2. 将标题改为环境变量定义 3. 调整部分代码的作用域
This commit is contained in:
parent
2a9e3722b8
commit
d5cd2f5920
|
@ -1,16 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>TDesign Vue Next Starter</title>
|
||||
<title>%VITE_BASE_TITLE%</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script language="javascript">
|
||||
if (window.location.host === 'tdesign.tencent.com') {
|
||||
window.global = window;
|
||||
const aegis = new Aegis({
|
||||
id: 'rDISNMyXgqWDFPyHMB', // 项目ID,即上报key
|
||||
reportAssetSpeed: true, // 静态资源测速
|
||||
|
@ -18,8 +19,4 @@
|
|||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
<script>
|
||||
window.global = window;
|
||||
</script>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue
Block a user