fix(接口测试): 接口测试首页跳转时默认为http请求

--bug=1027142 --user=宋天阳 【接口测试】接口测试首页-接口数量统计-接口完成率 中已完成 /进行中/未开始跳转链接页面错误
https://www.tapd.cn/55049933/s/1385336
This commit is contained in:
song-tianyang 2023-06-25 12:01:22 +08:00 committed by fit2-zhao
parent c754d78880
commit aeb7688084
1 changed files with 13 additions and 5 deletions

View File

@ -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;
},