Commit 807aca9c authored by Damon's avatar Damon

perf: 图片回显速度优化

parent fb64824f
...@@ -72,10 +72,14 @@ export default { ...@@ -72,10 +72,14 @@ export default {
const data = JSON.parse(JSON.stringify(this.uploadTask)) const data = JSON.parse(JSON.stringify(this.uploadTask))
const saveLists = data.concat(lists) const saveLists = data.concat(lists)
this.$u.vuex('uploadTask', saveLists)
const newTotal = this.uploadTotal + lists.length const newTotal = this.uploadTotal + lists.length
setTimeout(() => {
this.$u.vuex('uploadTask', saveLists)
this.$u.vuex('uploadTotal', newTotal) this.$u.vuex('uploadTotal', newTotal)
}, 1000)
//this.$u.vuex('uploadSuccess', 0) //this.$u.vuex('uploadSuccess', 0)
return lists return lists
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment