fix(接口自动化): 修复点击模块不能正确更新场景列表的bug

This commit is contained in:
q4speed 2020-12-02 15:48:47 +08:00
parent 4065663f55
commit 02a5eb9570
2 changed files with 8 additions and 1 deletions

View File

@ -87,7 +87,6 @@ export default {
},
selectModule(data) {
this.currentModule = data;
this.$refs.apiScenarioList.search(data);
},
saveScenario(data) {
this.setTabLabel(data);

View File

@ -75,6 +75,14 @@ export default {
total: 0,
}
},
watch:{
currentProject() {
this.search();
},
currentModule() {
this.search();
},
},
methods: {
search() {
this.condition.filters = ["Saved", "Success", "Fail"];