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

15 lines
401 B
Vue

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