fix(接口自动化): 不同协议类型跳转问题

--user=郭雨琦 不同协议类型跳转问题
This commit is contained in:
guoyuqi 2021-12-13 18:35:23 +08:00 committed by 刘瑞斌
parent 245c507269
commit 97a4d31184
1 changed files with 3 additions and 0 deletions

View File

@ -639,6 +639,9 @@ export default {
clickResource(resource) {
if (resource.refType && resource.refType === 'API') {
if(resource.protocol==='dubbo://'){
resource.protocol = 'DUBBO'
}
let definitionData = this.$router.resolve({
name: 'ApiDefinition',
params: {redirectID: getUUID(), dataType: "api", dataSelectRange: 'edit:' + resource.id, projectId: resource.projectId, type: resource.protocol}