diff --git a/packages/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue b/packages/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue index d94a005ca8..b246ec4cab 100644 --- a/packages/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue +++ b/packages/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue @@ -72,9 +72,7 @@ export default { data () { return { - dasharray: 0, - dashoffset: 0, - animating: false + dasharray: 0 } }, @@ -90,14 +88,10 @@ export default { }, finalDashoffset () { - if (this.animating) { - return this.dashoffset + if (this.ratio < 0) { + return -this.dasharray * this.ratio + this.dasharray } else { - if (this.ratio < 0) { - return -this.dasharray * this.ratio + this.dasharray - } else { - return (1 - this.ratio) * this.dasharray - } + return (1 - this.ratio) * this.dasharray } },