From a35fb2991a0bae66244f7f9b49189c7aa73db4dc Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Thu, 28 Jun 2018 09:31:16 +0800 Subject: [PATCH] update LoadingBar speed --- examples/routers/loading-bar.vue | 10 +++++----- src/components/loading-bar/index.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/routers/loading-bar.vue b/examples/routers/loading-bar.vue index 9f21a87..824575f 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 237123a..b7a69e6 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(); } -- libgit2 0.21.4