diff --git a/packages/step/index.js b/packages/step/index.js index 45929231d..cfbcfbeae 100644 --- a/packages/step/index.js +++ b/packages/step/index.js @@ -8,6 +8,13 @@ export default sfc({ this.$parent.steps.push(this); }, + beforeDestroy() { + const index = this.$parent.steps.indexOf(this); + if (index > -1) { + this.$parent.steps.splice(index, 1); + } + }, + computed: { status() { const index = this.$parent.steps.indexOf(this);