前台后台导入文件
前端代码
<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() } }
 
                    
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号