fix(接口测试): 修复增加首页版本跳转功能时引起的列表版本切换不生效的问题
修复增加首页版本跳转功能时引起的列表版本切换不生效的问题
This commit is contained in:
parent
bebee3896d
commit
2938a1e9a6
|
@ -326,7 +326,7 @@ export default {
|
||||||
let selectDataType = 'all';
|
let selectDataType = 'all';
|
||||||
let routeParamObj = this.$route.params;
|
let routeParamObj = this.$route.params;
|
||||||
let redirectVersionId = this.$route.params.versionId;
|
let redirectVersionId = this.$route.params.versionId;
|
||||||
if (redirectVersionId !== 'default') {
|
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||||
this.condition.versionId = redirectVersionId;
|
this.condition.versionId = redirectVersionId;
|
||||||
}
|
}
|
||||||
if (routeParamObj) {
|
if (routeParamObj) {
|
||||||
|
|
|
@ -1325,7 +1325,7 @@ export default {
|
||||||
this.selectDataType = 'all';
|
this.selectDataType = 'all';
|
||||||
let routeParamObj = this.$route.params;
|
let routeParamObj = this.$route.params;
|
||||||
let redirectVersionId = this.$route.params.versionId;
|
let redirectVersionId = this.$route.params.versionId;
|
||||||
if (redirectVersionId !== 'default') {
|
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||||
this.condition.versionId = redirectVersionId;
|
this.condition.versionId = redirectVersionId;
|
||||||
}
|
}
|
||||||
if (routeParamObj) {
|
if (routeParamObj) {
|
||||||
|
|
|
@ -1280,7 +1280,7 @@ export default {
|
||||||
let routeParam = this.$route.params.dataSelectRange;
|
let routeParam = this.$route.params.dataSelectRange;
|
||||||
let dataType = this.$route.params.dataType;
|
let dataType = this.$route.params.dataType;
|
||||||
let redirectVersionId = this.$route.params.versionId;
|
let redirectVersionId = this.$route.params.versionId;
|
||||||
if (redirectVersionId !== 'default') {
|
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||||
this.condition.versionId = redirectVersionId;
|
this.condition.versionId = redirectVersionId;
|
||||||
}
|
}
|
||||||
if (dataType === 'apiTestCase') {
|
if (dataType === 'apiTestCase') {
|
||||||
|
|
|
@ -1047,7 +1047,6 @@ export default {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getColor(enable, method) {
|
getColor(enable, method) {
|
||||||
if (enable) {
|
if (enable) {
|
||||||
return this.methodColorMap.get(method);
|
return this.methodColorMap.get(method);
|
||||||
|
@ -1061,7 +1060,7 @@ export default {
|
||||||
let dataRange = this.$route.params.dataSelectRange;
|
let dataRange = this.$route.params.dataSelectRange;
|
||||||
let dataType = this.$route.params.dataType;
|
let dataType = this.$route.params.dataType;
|
||||||
let redirectVersionId = this.$route.params.versionId;
|
let redirectVersionId = this.$route.params.versionId;
|
||||||
if (redirectVersionId !== 'default') {
|
if (redirectVersionId && redirectVersionId !== 'default') {
|
||||||
this.condition.versionId = redirectVersionId;
|
this.condition.versionId = redirectVersionId;
|
||||||
}
|
}
|
||||||
this.selectDataRange = dataType === 'api' ? dataRange : 'all';
|
this.selectDataRange = dataType === 'api' ? dataRange : 'all';
|
||||||
|
|
Loading…
Reference in New Issue