You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.1 KiB

11 months ago
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1" />
  7. <meta name="theme-color" content="#000000" />
  8. <meta data-n-head="ssr" name="renderer" content="webkit">
  9. <meta data-n-head="ssr" http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="description" content="React-Antd-Admin管理后台" />
  11. <link rel="apple-touch-icon" href="logo192.png" />
  12. <!--
  13. manifest.json provides metadata used when your web app is installed on a
  14. user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
  15. -->
  16. <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
  17. <!--
  18. Notice the use of %PUBLIC_URL% in the tags above.
  19. It will be replaced with the URL of the `public` folder during the build.
  20. Only files inside the `public` folder can be referenced from the HTML.
  21. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
  22. work correctly both with client-side routing and a non-root public URL.
  23. Learn how to configure a non-root public URL by running `npm run build`.
  24. -->
  25. <title>React Antd Admin管理后台</title>
  26. </head>
  27. <body>
  28. <!-- 主题 -->
  29. <link type="text/css" rel="stylesheet/less" href="/static/color.less">
  30. <noscript>You need to enable JavaScript to run this app.</noscript>
  31. <div id="root"></div>
  32. <script>
  33. // 切换为当前主题
  34. const themeStyle = localStorage.getItem('themeStyle')
  35. if(themeStyle) {
  36. const styles = document.createElement('style')
  37. styles.id = 'less:color'
  38. styles.innerText = themeStyle
  39. document.body.appendChild(styles)
  40. }
  41. </script>
  42. <!--
  43. This HTML file is a template.
  44. If you open it directly in the browser, you will see an empty page.
  45. You can add webfonts, meta tags, or analytics to this file.
  46. The build step will place the bundled scripts into the <body> tag.
  47. To begin the development, run `npm start` or `yarn start`.
  48. To create a production bundle, use `npm run build` or `yarn build`.
  49. -->
  50. </body>
  51. </html>