mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 23:16:18 +08:00
修复导入bug
This commit is contained in:
parent
a8d21025e6
commit
3f6e0dbd6c
@ -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 = () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user