* 默认选中拖拽文件中的第一个

This commit is contained in:
maxmon 2021-06-17 03:03:44 +08:00
parent 44064632be
commit 83a6bd1a62
1 changed files with 4 additions and 0 deletions

View File

@ -501,6 +501,10 @@ export default {
// //
that.$set(that.files, i, file.name) that.$set(that.files, i, file.name)
that.$set(that.textDic, file.name, e.target.result) that.$set(that.textDic, file.name, e.target.result)
if (i === 0) {
//
that.setNowText(file.name)
}
} }
// //
// reader.readAsDataURL(file) // reader.readAsDataURL(file)