前台后台导入文件

前端代码

<template>
<a-upload
name = "file"
:show-upload-list = "false"
action="填写后端接口地址”
:headers = "headers"
@change = "handleChange"
>
<a-button>
<a-icon type = "upload" />
导入
</a-button>
</a-upload>
</template>

<script>
exprot default {
data() {
return {
headers:{
authorization:'authorization-text'
}
}
},
methods:{
handleChange()
}
}

 

posted @ 2022-03-15 19:24  无效_rank  阅读(43)  评论(0)    收藏  举报