add request header

This commit is contained in:
AceDataCloud committed 2023-01-21 01:33:42 +08:00
1 parent 8da931e8a9
commit bdfaf84b15
3 files changed
+53 -3

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
<template>
<div class="authentication">
<div class="title">
{{ $t('api.entity.requestHeader') }}
</div>
<el-input v-model="apiKeyValue" placeholder="x-api-key">
<template #prepend>x-api-key</template>
</el-input>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'ApiTry',
props: {
apiKey: {
type: String,
required: false,
default: ''
}
},
emits: ['update:api-key'],
data() {
return {
apiKeyValue: this.apiKey
};
},
watch: {
apiKeyValue: {
handler(val) {
this.$emit('update:api-key', val);
}
}
}
});
</script>