index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <!--
  2. * @Author: 半生瓜 1515706227@qq.com
  3. * @Date: 2024-04-21 17:20:21
  4. * @LastEditors: 半生瓜 1515706227@qq.com
  5. * @LastEditTime: 2024-05-16 01:34:43
  6. * @FilePath: \vue-element-plus-admin-mini\index.html
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. -->
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. <meta charset="UTF-8" />
  13. <link rel="icon" href="/favicon.ico" />
  14. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  15. <title><%= title %></title>
  16. <script>
  17. window.VITE_API_BASE_PATH='http://192.168.4.194:9099/link-server'
  18. </script>
  19. </head>
  20. <body>
  21. <div id="app">
  22. <style>
  23. .app-loading {
  24. display: flex;
  25. width: 100%;
  26. height: 100%;
  27. justify-content: center;
  28. align-items: center;
  29. flex-direction: column;
  30. background: #f0f2f5;
  31. }
  32. .app-loading .app-loading-wrap {
  33. position: absolute;
  34. top: 50%;
  35. left: 50%;
  36. display: flex;
  37. -webkit-transform: translate3d(-50%, -50%, 0);
  38. transform: translate3d(-50%, -50%, 0);
  39. justify-content: center;
  40. align-items: center;
  41. flex-direction: column;
  42. }
  43. .app-loading .app-loading-title {
  44. margin-bottom: 30px;
  45. font-size: 20px;
  46. font-weight: bold;
  47. text-align: center;
  48. }
  49. .app-loading .app-loading-logo {
  50. width: 100px;
  51. margin: 0 auto 15px auto;
  52. }
  53. .app-loading .app-loading-item {
  54. position: relative;
  55. display: inline-block;
  56. width: 60px;
  57. height: 60px;
  58. vertical-align: middle;
  59. border-radius: 50%;
  60. }
  61. .app-loading .app-loading-outter {
  62. position: absolute;
  63. width: 100%;
  64. height: 100%;
  65. border: 4px solid #2d8cf0;
  66. border-bottom: 0;
  67. border-left-color: transparent;
  68. border-radius: 50%;
  69. animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  70. }
  71. .app-loading .app-loading-inner {
  72. position: absolute;
  73. top: calc(50% - 20px);
  74. left: calc(50% - 20px);
  75. width: 40px;
  76. height: 40px;
  77. border: 4px solid #87bdff;
  78. border-right: 0;
  79. border-top-color: transparent;
  80. border-radius: 50%;
  81. animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
  82. }
  83. @-webkit-keyframes loader-outter {
  84. 0% {
  85. -webkit-transform: rotate(0deg);
  86. transform: rotate(0deg);
  87. }
  88. 100% {
  89. -webkit-transform: rotate(360deg);
  90. transform: rotate(360deg);
  91. }
  92. }
  93. @keyframes loader-outter {
  94. 0% {
  95. -webkit-transform: rotate(0deg);
  96. transform: rotate(0deg);
  97. }
  98. 100% {
  99. -webkit-transform: rotate(360deg);
  100. transform: rotate(360deg);
  101. }
  102. }
  103. @-webkit-keyframes loader-inner {
  104. 0% {
  105. -webkit-transform: rotate(0deg);
  106. transform: rotate(0deg);
  107. }
  108. 100% {
  109. -webkit-transform: rotate(-360deg);
  110. transform: rotate(-360deg);
  111. }
  112. }
  113. @keyframes loader-inner {
  114. 0% {
  115. -webkit-transform: rotate(0deg);
  116. transform: rotate(0deg);
  117. }
  118. 100% {
  119. -webkit-transform: rotate(-360deg);
  120. transform: rotate(-360deg);
  121. }
  122. }
  123. </style>
  124. <div class="app-loading">
  125. <div class="app-loading-wrap">
  126. <div class="app-loading-title">
  127. <img src="/logo.png" class="app-loading-logo" alt="Logo" />
  128. <div class="app-loading-title"><%= title %></div>
  129. </div>
  130. <div class="app-loading-item">
  131. <div class="app-loading-outter"></div>
  132. <div class="app-loading-inner"></div>
  133. </div>
  134. </div>
  135. </div>
  136. </div>
  137. <script type="module" src="/src/main.ts"></script>
  138. </body>
  139. </html>