|
|
|
@ -208,6 +208,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
// files 定位缓存
|
|
|
|
// files 定位缓存
|
|
|
|
this.maps = {}
|
|
|
|
this.maps = {}
|
|
|
|
|
|
|
|
if (this.files) {
|
|
|
|
|
|
|
|
for (let i = 0; i < this.files.length; i++) {
|
|
|
|
|
|
|
|
let file = this.files[i]
|
|
|
|
|
|
|
|
this.maps[file.id] = file
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.$nextTick(function () {
|
|
|
|
this.$nextTick(function () {
|
|
|
|
|
|
|
|
|
|
|
|
@ -488,11 +494,11 @@ export default {
|
|
|
|
name: file.webkitRelativePath || file.relativePath || file.name,
|
|
|
|
name: file.webkitRelativePath || file.relativePath || file.name,
|
|
|
|
type: file.type,
|
|
|
|
type: file.type,
|
|
|
|
file,
|
|
|
|
file,
|
|
|
|
el
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
var names = el.value.replace(/\\/g, '/').split('/')
|
|
|
|
var names = el.value.replace(/\\/g, '/').split('/')
|
|
|
|
|
|
|
|
delete el.__vuex__
|
|
|
|
files.push({
|
|
|
|
files.push({
|
|
|
|
name: names[names.length - 1],
|
|
|
|
name: names[names.length - 1],
|
|
|
|
el,
|
|
|
|
el,
|
|
|
|
|