index.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
  7. <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  8. <title><%= htmlWebpackPlugin.options.title %></title>
  9. <style>
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. box-sizing: border-box;
  14. }
  15. html {
  16. height: 100%;
  17. }
  18. body {
  19. height: 100%;
  20. margin: 0;
  21. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  22. -webkit-font-smoothing: antialiased;
  23. -moz-osx-font-smoothing: grayscale;
  24. background-color: #f5f5f5;
  25. }
  26. #app {
  27. width: 100%;
  28. height: 100%;
  29. min-height: 100%;
  30. /* 部分 WebView 需显式占满可视区域 */
  31. min-height: 100vh;
  32. min-height: 100dvh;
  33. min-height: -webkit-fill-available;
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <!-- 若将 npm run build 的 dist 放入 Android assets 以 file:// 打开,请取消下一行注释并配置机器人可访问的后端,例如: http://127.0.0.1:3381/api/v1 或 http://10.0.0.2:3381/api/v1 -->
  39. <!-- <script>window.__MEDICAL_API_BASE__ = 'http://127.0.0.1:3381/api/v1';</script> -->
  40. <noscript>
  41. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
  42. </noscript>
  43. <div id="app"></div>
  44. <!-- built files will be auto injected -->
  45. </body>
  46. </html>