导入收藏时,deep copy当前的list,否则列表会在没有排序好之前就被展示

This commit is contained in:
haiyangcui
2020-11-03 16:39:00 +01:00
parent 68960ab5bb
commit 6644c97811

View File

@@ -385,7 +385,7 @@ export default {
}
remote.dialog.showOpenDialog(options).then(result => {
if (!result.canceled) {
var starList = this.list
var starList = Array.from(this.list)
var id = this.list.length + 1
result.filePaths.forEach(file => {
var str = fs.readFileSync(file)