test inspect token

This commit is contained in:
jb-alvarado 2020-05-24 22:12:53 +02:00
parent 74316b1b91
commit 42b313f5a5

View File

@ -378,6 +378,7 @@ export default {
evt.preventDefault()
const uploadProgress = fileName => (progressEvent) => {
const progress = Math.round((progressEvent.loaded * 100) / progressEvent.total)
this.$store.dispatch('auth/inspectToken')
this.currentProgress = progress
}
@ -395,10 +396,10 @@ export default {
file,
config
)
.then(
this.overallProgress = (i + 1) * 100 / this.inputFiles.length,
.then((res) => {
this.overallProgress = (i + 1) * 100 / this.inputFiles.length
this.currentProgress = 0
)
})
.catch(err => console.log(err))
}