|
|
@@ -2,11 +2,75 @@
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8" />
|
|
|
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
|
+ <link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
- <title>dashboard</title>
|
|
|
+ <title>loading</title>
|
|
|
+ <style>
|
|
|
+ /* 首次加载的 loading 样式 */
|
|
|
+ #app-loading {
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ background: #fff;
|
|
|
+ z-index: 9999;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* Spinner 动画 */
|
|
|
+ .spinner {
|
|
|
+ width: 50px;
|
|
|
+ height: 50px;
|
|
|
+ border: 4px solid #f3f3f3;
|
|
|
+ border-top: 4px solid #1890ff;
|
|
|
+ border-radius: 50%;
|
|
|
+ animation: spin 1s linear infinite;
|
|
|
+ }
|
|
|
+
|
|
|
+ @keyframes spin {
|
|
|
+ 0% {
|
|
|
+ transform: rotate(0deg);
|
|
|
+ }
|
|
|
+ 100% {
|
|
|
+ transform: rotate(360deg);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .loading-text {
|
|
|
+ margin-top: 20px;
|
|
|
+ color: #666;
|
|
|
+ font-size: 14px;
|
|
|
+ font-family:
|
|
|
+ -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* Dark mode 支持 */
|
|
|
+ @media (prefers-color-scheme: dark) {
|
|
|
+ #app-loading {
|
|
|
+ background: #141414;
|
|
|
+ }
|
|
|
+ .spinner {
|
|
|
+ border-color: #333;
|
|
|
+ border-top-color: #1890ff;
|
|
|
+ }
|
|
|
+ .loading-text {
|
|
|
+ color: #999;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </style>
|
|
|
</head>
|
|
|
<body>
|
|
|
+ <noscript>You need to enable JavaScript to run this app.</noscript>
|
|
|
+
|
|
|
+ <!-- 🎯 首次加载 Loading -->
|
|
|
+ <div id="app-loading">
|
|
|
+ <div class="spinner"></div>
|
|
|
+ <div class="loading-text">加载中,请稍候...</div>
|
|
|
+ </div>
|
|
|
<div id="root"></div>
|
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
|
</body>
|