diff --git a/examples/routers/loading-bar.vue b/examples/routers/loading-bar.vue index 9f21a871..824575fa 100644 --- a/examples/routers/loading-bar.vue +++ b/examples/routers/loading-bar.vue @@ -19,11 +19,11 @@ } }, created () { - this.$Loading.config({ - color: '#5cb85c', - failedColor: '#f0ad4e', - height: 5 - }); +// this.$Loading.config({ +// color: '#5cb85c', +// failedColor: '#f0ad4e', +// height: 5 +// }); } } diff --git a/src/components/loading-bar/index.js b/src/components/loading-bar/index.js index 237123a9..b7a69e6d 100644 --- a/src/components/loading-bar/index.js +++ b/src/components/loading-bar/index.js @@ -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(); }