修复导入bug

This commit is contained in:
fofolee 2020-05-08 22:59:49 +08:00
parent a8d21025e6
commit 3f6e0dbd6c

View File

@ -24,8 +24,8 @@ importCommand = () => {
filters: [{ name: 'json', extensions: ['json'] }, ]
}
var file = window.openFolder(options)[0];
var customFts = getCustomFts();
$.get(file, data => {
if (file) {
var data = readFile(file)
try {
var pushData = JSON.parse(data);
} catch (error) {
@ -56,7 +56,7 @@ importCommand = () => {
})
}
}
})
}
}
exportAll = () => {