fix(接口测试): 修复首页跳转模块树和列表数据不一致的缺陷
--bug=1027614 --user=王孝刚 【接口测试】首页-接口数量统计-接口覆盖率-已覆盖/未覆盖-点击RPC/TCP/SQL-跳转页面显示HTTP接口数据 https://www.tapd.cn/55049933/s/1390221
This commit is contained in:
parent
b8083b612d
commit
4d8f3b3fee
|
@ -483,7 +483,9 @@ export default {
|
|||
},
|
||||
beforeCreate() {
|
||||
getUserDefaultApiType().then(response => {
|
||||
this.currentProtocol = response.data;
|
||||
if (!this.currentProtocol) {
|
||||
this.currentProtocol = response.data;
|
||||
}
|
||||
})
|
||||
},
|
||||
created() {
|
||||
|
@ -865,6 +867,9 @@ export default {
|
|||
initForwardData() {
|
||||
let dataRange = this.$route.params.dataSelectRange;
|
||||
let dataType = this.$route.params.dataType;
|
||||
if (this.$route && this.$route.params && this.$route.params.type) {
|
||||
this.currentProtocol = this.$route.params.type;
|
||||
}
|
||||
if (dataRange && typeof dataRange === 'string' && dataType === 'api') {
|
||||
let selectParamArr = dataRange.split('edit:');
|
||||
if (selectParamArr.length === 2) {
|
||||
|
|
Loading…
Reference in New Issue