tiny-vue/examples/sites/demos/pc/app/pop-upload/custom-request-headers.vue

23 lines
462 B
Vue

<template>
<tiny-pop-upload :action="action" :headers="headers" with-credentials></tiny-pop-upload>
</template>
<script lang="jsx">
import { PopUpload } from '@opentiny/vue'
export default {
components: {
TinyPopUpload: PopUpload
},
data() {
return {
action: 'http://localhost:3000/api/upload',
headers: {
'Accept-Language': 'en,zh',
Authorization: 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
}
}
}
}
</script>