add 错误提示输出到日志框中
This commit is contained in:
parent
d26a63b079
commit
74e440ccf8
@ -60,14 +60,16 @@ mainForm.btnSelectFile.oncommand = function(id, event) {
|
|||||||
mainForm.btnRun.oncommand = function(id, event) {
|
mainForm.btnRun.oncommand = function(id, event) {
|
||||||
var inputFilePath = mainForm.inputFile.text;
|
var inputFilePath = mainForm.inputFile.text;
|
||||||
if (!inputFilePath) {
|
if (!inputFilePath) {
|
||||||
console.log("请先选择输入文件!");
|
mainForm.editConsole.appendLink('\r\n');
|
||||||
|
mainForm.editConsole.appendText( textColor = 0xC7C7FF, point = 10, "请先选择输入文件!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 弹出保存文件对话框,选择PDF保存路径
|
// 弹出保存文件对话框,选择PDF保存路径
|
||||||
var outputFilePath = fsys.dlg.save("PDF 文件|*.pdf||",, "选择保存路径");
|
var outputFilePath = fsys.dlg.save("PDF 文件|*.pdf||",, "选择保存路径");
|
||||||
if (!outputFilePath) {
|
if (!outputFilePath) {
|
||||||
console.log("请选择PDF文件的保存路径!");
|
mainForm.editConsole.appendLink('\r\n');
|
||||||
|
mainForm.editConsole.appendText( textColor = 0xC7C7FF, point = 10, "请选择PDF文件的保存路径!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user