[bugfix] Step: step 销毁之前从父 steps 中移除 (#3140)

This commit is contained in:
akebe 2019-04-13 09:10:30 +08:00 committed by neverland
parent 9820e0ed62
commit 95f014cff4

View File

@ -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);