style: 函数名调整

This commit is contained in:
fofolee 2021-03-30 23:04:38 +08:00
parent a2a070d471
commit 59cd8f6191
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ let getRemoteIcon = (selector, callback) => {
let getImg = (imgUrl, callback) => { let getImg = (imgUrl, callback) => {
let imgInfo = window.getFileInfo({ type: 'file', argvs: imgUrl, readfile: false }) 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(() => { quickcommand.downloadFile(imgUrl, imgPath).then(() => {
window.getBase64Ico(imgPath).then(src => { window.getBase64Ico(imgPath).then(src => {
callback(src) callback(src)

View File

@ -177,7 +177,7 @@ import qcparser from "./qcparser.js"
}, option.enterData) }, option.enterData)
} else { } else {
var terminal = output == 'terminal' ? true : false 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) => { window.runCodeFile(cmd, option, terminal, (stdout, stderr) => {
switchQuickCommandResult(stdout, stderr, outputOpts) switchQuickCommandResult(stdout, stderr, outputOpts)