mirror of
https://github.com/schroinerxy/cloud-mail.git
synced 2026-06-22 03:45:52 +08:00
修复浏览器刷新时有黑影闪过
This commit is contained in:
Vendored
+25
-24
@@ -10,30 +10,6 @@
|
||||
<script type="module" crossorigin src="/assets/index-BWO6kBue.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-IV79mZ40.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="loading-first">
|
||||
<div class="loading-icon">
|
||||
<svg class="circular" viewBox="0 0 20 20">
|
||||
<g class="loading-path">
|
||||
<circle r="3.375" class="dot1" rx="0" ry="0"/>
|
||||
<circle r="3.375" class="dot2" rx="0" ry="0"/>
|
||||
<circle r="3.375" class="dot4" rx="0" ry="0"/>
|
||||
<circle r="3.375" class="dot3" rx="0" ry="0"/>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div id="app"></div>
|
||||
<script>
|
||||
const uiStoreStr = localStorage.getItem('ui')
|
||||
if (uiStoreStr) {
|
||||
const uiStore = JSON.parse(uiStoreStr)
|
||||
const doc = document.querySelector('#loading-first')
|
||||
doc.style.background = uiStore.dark ? '#141414' : '#FFFFFF'
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
<style>
|
||||
|
||||
#loading-first {
|
||||
@@ -59,6 +35,7 @@
|
||||
height: 30px;
|
||||
width: 30px;
|
||||
animation: loading-rotate 1s linear infinite;
|
||||
fill: transparent !important;
|
||||
}
|
||||
|
||||
.loading-path .dot1 {
|
||||
@@ -104,3 +81,27 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="loading-first">
|
||||
<div class="loading-icon">
|
||||
<svg class="circular" viewBox="0 0 20 20">
|
||||
<g class="loading-path">
|
||||
<circle r="3.375" class="dot1" rx="0" ry="0"/>
|
||||
<circle r="3.375" class="dot2" rx="0" ry="0"/>
|
||||
<circle r="3.375" class="dot4" rx="0" ry="0"/>
|
||||
<circle r="3.375" class="dot3" rx="0" ry="0"/>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
<div id="app"></div>
|
||||
<script>
|
||||
const uiStoreStr = localStorage.getItem('ui')
|
||||
if (uiStoreStr) {
|
||||
const uiStore = JSON.parse(uiStoreStr)
|
||||
const doc = document.querySelector('#loading-first')
|
||||
doc.style.background = uiStore.dark ? '#141414' : '#FFFFFF'
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user