mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Step: step 销毁之前从父 steps 中移除 (#3140)
This commit is contained in:
parent
9820e0ed62
commit
95f014cff4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user