From f56681a78865e8a0b98768992ee3fa7dc9323ea3 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 14 Oct 2022 19:12:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3swagger=E9=80=9A=E8=BF=87url=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E6=9A=82=E6=97=B6=E9=9A=90=E8=97=8Fdigest=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E6=96=B9=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --- .../definition/components/auth/ApiAuthConfig.vue | 13 ++++++++++++- .../definition/components/import/ApiImport.vue | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue b/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue index 5fec37b8ff..c02601db7b 100644 --- a/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue +++ b/api-test/frontend/src/business/definition/components/auth/ApiAuthConfig.vue @@ -68,6 +68,10 @@ export default { default: true, }, isReadOnly: Boolean, + isSwagger:{ + type: Boolean, + default: false, + } }, watch: { request() { @@ -75,11 +79,18 @@ export default { } }, created() { + if (this.isSwagger) { + this.options = this.swaggerOptions; + }else { + this.options = this.originalOptions; + } this.initData(); }, data() { return { - options: [{name: "No Auth"}, {name: "Basic Auth"}, {name: "Digest Auth"}], + originalOptions: [{name: "No Auth"}, {name: "Basic Auth"}, {name: "Digest Auth"}], + swaggerOptions:[{name: "No Auth"}, {name: "Basic Auth"}], + options: [], encryptOptions: [{id: false, name: this.$t('commons.encrypted')}], activeName: "verified", rule: {}, diff --git a/api-test/frontend/src/business/definition/components/import/ApiImport.vue b/api-test/frontend/src/business/definition/components/import/ApiImport.vue index 6a7512bc27..51e618af05 100644 --- a/api-test/frontend/src/business/definition/components/import/ApiImport.vue +++ b/api-test/frontend/src/business/definition/components/import/ApiImport.vue @@ -97,7 +97,7 @@
{{ $t('api_test.definition.request.auth_config') }}{{ $t('api_test.api_import.optional') }}:
- +