fix(接口测试): 修复开源版创建接口报授权认证失败的问题

This commit is contained in:
CaptainB 2022-01-25 19:48:45 +08:00 committed by xiaomeinvG
parent 50262a2b55
commit e7a7c2e8d4
1 changed files with 10 additions and 8 deletions

View File

@ -69,7 +69,7 @@ import {getRelationshipApi} from "@/network/api";
import ApiRelationshipRelevance
from "@/business/components/api/definition/components/complete/ApiRelationshipRelevance";
import ApiStatus from "@/business/components/api/definition/components/list/ApiStatus";
import {getCurrentProjectID} from "@/common/js/utils";
import {getCurrentProjectID, hasLicense} from "@/common/js/utils";
export default {
name: "ApiRelationshipList",
@ -86,7 +86,7 @@ export default {
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
exec: this.handleDelete,
permissions: ['PROJECT_API_DEFINITION:READ+EDIT_API'],
isDisable:this.readOnly
isDisable: this.readOnly
}
],
condition: {},
@ -118,12 +118,14 @@ export default {
this.$emit('deleteRelationship', item.sourceId, item.targetId);
},
getProjectVersions() {
this.$get('/project/version/get-project-versions/' + getCurrentProjectID(), response => {
this.versionOptions = response.data.reduce((result, next) => {
result[next.id] = next.name;
return result;
}, {});
});
if (hasLicense()) {
this.$get('/project/version/get-project-versions/' + getCurrentProjectID(), response => {
this.versionOptions = response.data.reduce((result, next) => {
result[next.id] = next.name;
return result;
}, {});
});
}
}
}
};