update LoadingBar speed
This commit is contained in:
parent
724a607712
commit
a35fb2991a
2 changed files with 6 additions and 6 deletions
|
@ -19,11 +19,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.$Loading.config({
|
// this.$Loading.config({
|
||||||
color: '#5cb85c',
|
// color: '#5cb85c',
|
||||||
failedColor: '#f0ad4e',
|
// failedColor: '#f0ad4e',
|
||||||
height: 5
|
// height: 5
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -55,7 +55,7 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
timer = setInterval(() => {
|
timer = setInterval(() => {
|
||||||
percent += Math.floor(Math.random () * 3 + 5);
|
percent += Math.floor(Math.random () * 3 + 1);
|
||||||
if (percent > 95) {
|
if (percent > 95) {
|
||||||
clearTimer();
|
clearTimer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue