fix: 修复 this 绑定偶现的问题
This commit is contained in:
parent
117a1c0e98
commit
788e020168
|
@ -96,10 +96,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let self = this;
|
||||||
PerformanceEvent.$on(LIST_CHANGE, () => {
|
PerformanceEvent.$on(LIST_CHANGE, () => {
|
||||||
this.$refs.projectRecent.recent();
|
self.$refs.projectRecent.recent();
|
||||||
this.$refs.testRecent.recent();
|
self.$refs.testRecent.recent();
|
||||||
this.$refs.reportRecent.recent();
|
self.$refs.reportRecent.recent();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,10 +100,11 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
|
let self = this;
|
||||||
TrackEvent.$on(LIST_CHANGE, () => {
|
TrackEvent.$on(LIST_CHANGE, () => {
|
||||||
this.$refs.projectRecent.recent();
|
self.$refs.projectRecent.recent();
|
||||||
this.$refs.planRecent.recent();
|
self.$refs.planRecent.recent();
|
||||||
this.$refs.caseRecent.recent();
|
self.$refs.caseRecent.recent();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue