parent
239c182d1c
commit
f56681a788
|
@ -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: {},
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
<div style="margin-top: 10px">
|
||||
<span>{{ $t('api_test.definition.request.auth_config') }}{{ $t('api_test.api_import.optional') }}:</span>
|
||||
</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 :span="12"
|
||||
|
|
Loading…
Reference in New Issue