接口测试首页刷新

This commit is contained in:
chenjianxing 2020-06-09 10:16:50 +08:00
parent e7d0ab6479
commit 5bb2e223a8
3 changed files with 18 additions and 4 deletions

View File

@ -55,6 +55,9 @@
created() {
this.search();
},
activated() {
this.search();
}
}
</script>

View File

@ -37,11 +37,19 @@
result: {},
}
},
mounted() {
this.result = this.$get('/api/report/dashboard/tests', response => {
this.values = response.data;
});
activated() {
this.getValues();
},
mounted() {
this.getValues();
},
methods: {
getValues() {
this.result = this.$get('/api/report/dashboard/tests', response => {
this.values = response.data;
});
}
}
}
</script>

View File

@ -56,6 +56,9 @@
created() {
this.search();
},
activated() {
this.search();
}
}
</script>