update LoadingBar speed

This commit is contained in:
梁灏 2018-06-28 09:31:16 +08:00
parent 724a607712
commit a35fb2991a
2 changed files with 6 additions and 6 deletions

View file

@ -19,11 +19,11 @@
}
},
created () {
this.$Loading.config({
color: '#5cb85c',
failedColor: '#f0ad4e',
height: 5
});
// this.$Loading.config({
// color: '#5cb85c',
// failedColor: '#f0ad4e',
// height: 5
// });
}
}
</script>

View file

@ -55,7 +55,7 @@ export default {
});
timer = setInterval(() => {
percent += Math.floor(Math.random () * 3 + 5);
percent += Math.floor(Math.random () * 3 + 1);
if (percent > 95) {
clearTimer();
}