index.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  7. <link rel="stylesheet" type="text/css" media="print" href="./print-lock.css">
  8. <title></title>
  9. <script>
  10. var webConfigData = JSON.parse(localStorage.getItem('webConfigData'))
  11. if (webConfigData) {
  12. let lang = localStorage.getItem('lang')
  13. if (lang !== 'en') {
  14. document.title = webConfigData.bsTitleContentCn || ''
  15. } else {
  16. document.title = webConfigData.bsTitleContentEn || ''
  17. }
  18. let facicon = document.querySelector('link[rel="icon"]')
  19. if (facicon !== null) {
  20. facicon.href = webConfigData.bsTitleImg
  21. } else {
  22. facicon = document.createElement('link')
  23. facicon.rel = 'icon'
  24. facicon.href = webConfigData.bsTitleImg
  25. document.head.appendChild(facicon)
  26. }
  27. }
  28. </script>
  29. </head>
  30. <body>
  31. <noscript>
  32. <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  33. </noscript>
  34. <div id="app"></div>
  35. <!-- built files will be auto injected -->
  36. </body>
  37. </html>