index.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <link rel="shortcut icon" href="%PUBLIC_URL%/uas.ico">
  6. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
  7. <meta name="theme-color" content="#000000">
  8. <!--
  9. manifest.json provides metadata used when your web app is added to the
  10. homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
  11. -->
  12. <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
  13. <!--
  14. Notice the use of %PUBLIC_URL% in the tags above.
  15. It will be replaced with the URL of the `public` folder during the build.
  16. Only files inside the `public` folder can be referenced from the HTML.
  17. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
  18. work correctly both with client-side routing and a non-root public URL.
  19. Learn how to configure a non-root public URL by running `npm run build`.
  20. -->
  21. <!-- <script type="text/javascript" src ="https://cdn.polyfill.io/v2/polyfill.min.js?features=es6"></script>-->
  22. <!-- <script type="text/javascript" src="../src/utils/browser-polyfill.min.js"/>-->
  23. <!-- <script type="text/javascript" src="../src/utils/browser.min.js"/>-->
  24. <script type="text/javascript">
  25. function GetQueryString (name) {
  26. let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)')
  27. let r = window.location.search.substr(1).match(reg) // search,查询?后面的参数,并匹配正则
  28. if (r != null) {
  29. return unescape(r[2])
  30. }
  31. return null
  32. }
  33. let paramJson = GetQueryString('params')
  34. if (window.localStorage) {
  35. let storage = window.localStorage
  36. if (paramJson !== null && paramJson !== undefined) {
  37. storage.setItem('paramJson', paramJson)
  38. } else {
  39. storage.setItem('paramJson', '')
  40. }
  41. }
  42. </script>
  43. <title></title>
  44. </head>
  45. <body>
  46. <noscript>
  47. You need to enable JavaScript to run this app.
  48. </noscript>
  49. <!--<script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=T1GtvYvfay3OYbSauKyRSYZCGE31mnXv"></script>-->
  50. <div id="root" style="width: 100%;height: 100%;"></div>
  51. <!--
  52. This HTML file is a template.
  53. If you open it directly in the browser, you will see an empty page.
  54. You can add webfonts, meta tags, or analytics to this file.
  55. The build step will place the bundled scripts into the <body> tag.
  56. To begin the development, run `npm start` or `yarn start`.
  57. To create a production bundle, use `npm run build` or `yarn build`.
  58. -->
  59. </body>
  60. </html>