fix(接口测试): 接口测试首页跳转时默认为http请求
--bug=1027142 --user=宋天阳 【接口测试】接口测试首页-接口数量统计-接口完成率 中已完成 /进行中/未开始跳转链接页面错误 https://www.tapd.cn/55049933/s/1385336
This commit is contained in:
parent
c754d78880
commit
aeb7688084
|
@ -49,19 +49,20 @@ import {
|
|||
delModule,
|
||||
dragModule,
|
||||
editModule,
|
||||
getApiModuleByTrash,
|
||||
getApiModules,
|
||||
getUserDefaultApiType,
|
||||
posModule, postApiModuleByTrash, postApiModules,
|
||||
posModule,
|
||||
postApiModuleByTrash,
|
||||
postApiModules,
|
||||
} from '@/api/definition-module';
|
||||
import MsAddBasisApi from '../basis/AddBasisApi';
|
||||
import SelectMenu from '@/business/commons/SelectMenu';
|
||||
import { OPTIONS } from '../../model/JsonData';
|
||||
import {OPTIONS} from '../../model/JsonData';
|
||||
import ApiImport from '../import/ApiImport';
|
||||
import MsNodeTree from '@/business/commons/NodeTree';
|
||||
import ApiModuleHeader from './ApiModuleHeader';
|
||||
import { buildTree } from 'metersphere-frontend/src/model/NodeTree';
|
||||
import { getCurrentProjectID } from 'metersphere-frontend/src/utils/token';
|
||||
import {buildTree} from 'metersphere-frontend/src/model/NodeTree';
|
||||
import {getCurrentProjectID} from 'metersphere-frontend/src/utils/token';
|
||||
|
||||
export default {
|
||||
name: 'MsApiModule',
|
||||
|
@ -216,6 +217,13 @@ export default {
|
|||
isRedirectPage = true;
|
||||
}
|
||||
}
|
||||
if (!isRedirectPage) {
|
||||
//跳转来源不是swagger时,判断是否是首页统计跳转的。
|
||||
if ((this.$route.params.dataType === 'api' || this.$route.params.dataType === 'apiTestCase')
|
||||
&& this.$route.params.dataSelectRange !== '') {
|
||||
isRedirectPage = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return isRedirectPage;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue