修复大文件上次token无效问题
This commit is contained in:
parent
6d59b9ffec
commit
4b5aa22613
@ -100,7 +100,7 @@ export default {
|
|||||||
return false
|
return false
|
||||||
},
|
},
|
||||||
headers: {
|
headers: {
|
||||||
Authorization:"Bearer "+getToken()
|
Authorization:null
|
||||||
},
|
},
|
||||||
query: (file, chunk) => {
|
query: (file, chunk) => {
|
||||||
return {
|
return {
|
||||||
@ -145,7 +145,9 @@ export default {
|
|||||||
},
|
},
|
||||||
uploadFile () {
|
uploadFile () {
|
||||||
// console.log("uploadFile")
|
// console.log("uploadFile")
|
||||||
|
if(!this.options.headers.Authorization){
|
||||||
|
this.options.headers.Authorization = "Bearer "+getToken()
|
||||||
|
}
|
||||||
if (this.uploadBtn) {
|
if (this.uploadBtn) {
|
||||||
this.uploadBtn.click()
|
this.uploadBtn.click()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user