| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <!doctype html>
- <html>
- <head>
- <title>山峡化工 - 生产一体化门户</title>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="description" content="山峡化工生产一体化门户管理系统" />
- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
- <style>
- /* 防止页面刷新时白屏的初始样式 */
- html {
- background-color: #fafbfc;
- }
- html.dark {
- background-color: #070707;
- }
- </style>
- <script>
- // 小程序 web-view 原生顶栏会显示 document.title;内嵌页用空标题,避免出现门户名/业务名
- ;(function () {
- try {
- var href = String(location.href || '')
- var hash = String(location.hash || '')
- if (
- hash.indexOf('/m/') !== -1 ||
- href.indexOf('mpTicket=') !== -1 ||
- href.indexOf('mpReturnOrigin=') !== -1
- ) {
- document.title = '\u200B'
- }
- } catch (e) {
- /* ignore */
- }
- })()
- // 初始化 html class 主题属性
- ;(function () {
- try {
- if (typeof Storage === 'undefined' || !window.localStorage) {
- return
- }
- const themeType = localStorage.getItem('sys-theme')
- if (themeType === 'dark') {
- document.documentElement.classList.add('dark')
- }
- } catch (e) {
- console.warn('Failed to apply initial theme:', e)
- }
- })()
- </script>
- </head>
- <body>
- <div id="app"></div>
- <script type="module" src="/src/main.ts"></script>
- </body>
- </html>
|