From 59cd8f61912a3699785ed8cd5e995cf94aa35302 Mon Sep 17 00:00:00 2001 From: fofolee Date: Tue, 30 Mar 2021 23:04:38 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=87=BD=E6=95=B0=E5=90=8D=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/js/iconpicker.js | 2 +- src/assets/js/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/js/iconpicker.js b/src/assets/js/iconpicker.js index e4ac50a..aedf5e2 100644 --- a/src/assets/js/iconpicker.js +++ b/src/assets/js/iconpicker.js @@ -73,7 +73,7 @@ let getRemoteIcon = (selector, callback) => { let getImg = (imgUrl, callback) => { let imgInfo = window.getFileInfo({ type: 'file', argvs: imgUrl, readfile: false }) - let imgPath = window.getQuickCommandScriptFile(imgInfo.ext) + let imgPath = window.getQuickcommandTempFile(imgInfo.ext) quickcommand.downloadFile(imgUrl, imgPath).then(() => { window.getBase64Ico(imgPath).then(src => { callback(src) diff --git a/src/assets/js/index.js b/src/assets/js/index.js index aec24d5..3b25e70 100644 --- a/src/assets/js/index.js +++ b/src/assets/js/index.js @@ -177,7 +177,7 @@ import qcparser from "./qcparser.js" }, option.enterData) } else { var terminal = output == 'terminal' ? true : false - outputOpts.scriptPath = window.getQuickCommandScriptFile(option.ext) + outputOpts.scriptPath = window.getQuickcommandTempFile(option.ext) // 执行脚本 window.runCodeFile(cmd, option, terminal, (stdout, stderr) => { switchQuickCommandResult(stdout, stderr, outputOpts)