el
<template> <el-upload action="test" :headers="myHeaders"></el-upload></template><script>var token = localStorage.getItem('token') // 要保证取到export default { data () { return { myHeaders: {Authorization: token} } }}</script>
赞 (0)
<template> <el-upload action="test" :headers="myHeaders"></el-upload></template><script>var token = localStorage.getItem('token') // 要保证取到export default { data () { return { myHeaders: {Authorization: token} } }}</script>