Optimize progress bar again
This commit is contained in:
parent
299c31dff9
commit
6463dd3bae
1 changed files with 1 additions and 0 deletions
|
|
@ -125,6 +125,7 @@ export function renderLoading ({ loaded, total }) {
|
||||||
|
|
||||||
if (num >= 95) {
|
if (num >= 95) {
|
||||||
clearTimeout(renderLoading.cacheTImeout)
|
clearTimeout(renderLoading.cacheTImeout)
|
||||||
|
CACHE['loading'].style.width = '100%'
|
||||||
renderLoading.cacheTImeout = setTimeout(_ => {
|
renderLoading.cacheTImeout = setTimeout(_ => {
|
||||||
CACHE['loading'].style.opacity = 0
|
CACHE['loading'].style.opacity = 0
|
||||||
CACHE['loading'].style.width = '0%'
|
CACHE['loading'].style.width = '0%'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue