fix(接口测试): 修复首页跳转到协议与数据不符的缺陷
--bug=1020480 --user=王孝刚 【接口测试】github #20341接口测试首页-未覆盖链接无法根据协议类型准确筛选并显示,很容易造成误解 https://www.tapd.cn/55049933/s/1352183
This commit is contained in:
parent
e3921882cf
commit
cc208efdfb
|
@ -579,10 +579,11 @@ export default {
|
||||||
this.condition.orders = getLastTableSortField(this.tableHeaderKey);
|
this.condition.orders = getLastTableSortField(this.tableHeaderKey);
|
||||||
// 切换tab之后版本查询
|
// 切换tab之后版本查询
|
||||||
this.condition.versionId = this.currentVersion;
|
this.condition.versionId = this.currentVersion;
|
||||||
|
let protocol;
|
||||||
if (this.$route && this.$route.params && this.$route.params.type) {
|
if (this.$route && this.$route.params && this.$route.params.type) {
|
||||||
this.condition.protocol = this.$route.params.type;
|
protocol = this.$route.params.type;
|
||||||
}
|
}
|
||||||
this.initTable();
|
this.initTable(protocol);
|
||||||
this.getMaintainerOptions();
|
this.getMaintainerOptions();
|
||||||
this.getVersionOptions();
|
this.getVersionOptions();
|
||||||
this.checkVersionEnable();
|
this.checkVersionEnable();
|
||||||
|
@ -696,7 +697,9 @@ export default {
|
||||||
this.selectDataCounts = 0;
|
this.selectDataCounts = 0;
|
||||||
this.condition.moduleIds = this.selectNodeIds;
|
this.condition.moduleIds = this.selectNodeIds;
|
||||||
this.condition.projectId = this.projectId;
|
this.condition.projectId = this.projectId;
|
||||||
if (this.currentProtocol != null) {
|
if (currentProtocol && ["HTTP", "DUBBO", "SQL", "TCP"].includes(currentProtocol)) {
|
||||||
|
this.condition.protocol = currentProtocol;
|
||||||
|
}else if (this.currentProtocol != null) {
|
||||||
this.condition.protocol = this.currentProtocol;
|
this.condition.protocol = this.currentProtocol;
|
||||||
}
|
}
|
||||||
this.enableOrderDrag = !(this.condition.orders && this.condition.orders.length > 0);
|
this.enableOrderDrag = !(this.condition.orders && this.condition.orders.length > 0);
|
||||||
|
|
Loading…
Reference in New Issue