parent
239c182d1c
commit
f56681a788
|
@ -68,6 +68,10 @@ export default {
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
isReadOnly: Boolean,
|
isReadOnly: Boolean,
|
||||||
|
isSwagger:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
request() {
|
request() {
|
||||||
|
@ -75,11 +79,18 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if (this.isSwagger) {
|
||||||
|
this.options = this.swaggerOptions;
|
||||||
|
}else {
|
||||||
|
this.options = this.originalOptions;
|
||||||
|
}
|
||||||
this.initData();
|
this.initData();
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
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')}],
|
encryptOptions: [{id: false, name: this.$t('commons.encrypted')}],
|
||||||
activeName: "verified",
|
activeName: "verified",
|
||||||
rule: {},
|
rule: {},
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
<div style="margin-top: 10px">
|
<div style="margin-top: 10px">
|
||||||
<span>{{ $t('api_test.definition.request.auth_config') }}{{ $t('api_test.api_import.optional') }}:</span>
|
<span>{{ $t('api_test.definition.request.auth_config') }}{{ $t('api_test.api_import.optional') }}:</span>
|
||||||
</div>
|
</div>
|
||||||
<ms-api-auth-config :is-read-only="isReadOnly" :request="authConfig" :encryptShow="false" ref="importAuth"/>
|
<ms-api-auth-config :is-read-only="isReadOnly" :request="authConfig" :encryptShow="false" :is-swagger="true" ref="importAuth"/>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="12"
|
<el-col :span="12"
|
||||||
|
|
Loading…
Reference in New Issue