支持匹配脚本文件,直接运行

This commit is contained in:
fofolee
2020-06-24 17:54:04 +08:00
parent 08ac0b501b
commit a5610f367b
4 changed files with 38 additions and 13 deletions

View File

@@ -14,8 +14,10 @@ utools.onPluginEnter(async ({ code, type, payload }) => {
// $("#options").show();
showOptions();
} else if (code == 'code') {
var file = ""
utools.setExpendHeight(600);
showCodeEditor()
if (type == 'files') file = payload[0].path
showCodeEditor(file)
} else {
// console.log(new Date().getTime() - window.startTime);
utools.setExpendHeight(0);