index.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. <title></title>
  8. <script>
  9. var webConfigData = JSON.parse(localStorage.getItem('webConfigData'))
  10. if (webConfigData) {
  11. let lang = localStorage.getItem('lang')
  12. if (lang !== 'en') {
  13. document.title = webConfigData.bsTitleContentCn || ''
  14. } else {
  15. document.title = webConfigData.bsTitleContentEn || ''
  16. }
  17. let facicon = document.querySelector('link[rel="icon"]')
  18. if (facicon !== null) {
  19. facicon.href = webConfigData.bsTitleImg
  20. } else {
  21. facicon = document.createElement('link')
  22. facicon.rel = 'icon'
  23. facicon.href = webConfigData.bsTitleImg
  24. document.head.appendChild(facicon)
  25. }
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <noscript>
  31. <strong>We're sorry but <%= webpackConfig.name %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  32. </noscript>
  33. <div id="app"></div>
  34. <!-- built files will be auto injected -->
  35. </body>
  36. </html>