From 3f6e0dbd6c8126890565afb7230ffbda05326d76 Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 8 May 2020 22:59:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/options.js b/src/assets/options.js index d3f5455..d496f8a 100644 --- a/src/assets/options.js +++ b/src/assets/options.js @@ -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 = () => {