客户端打印设置与打包设置
This commit is contained in:
@ -99,15 +99,15 @@
|
||||
// 绘制页面
|
||||
let html = [];
|
||||
for (const printer of data.listPrinter) {
|
||||
if (printer === defaultPrinter) {
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action active" data-name="${printer}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer}
|
||||
if (printer.name === defaultPrinter) {
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action active" data-name="${printer.name}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer.name}
|
||||
</a>
|
||||
`)
|
||||
continue;
|
||||
}
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action" data-name="${printer}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer}
|
||||
html.push(`<a href="#" class="list-group-item list-group-item-action" data-name="${printer.name}">
|
||||
<i class="bi bi-printer-fill"></i> ${printer.name}
|
||||
</a>
|
||||
`)
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@
|
||||
//程序更新信息监听
|
||||
ipcRenderer.on("message", (event, args) => {
|
||||
if (args[0] == -1) {
|
||||
$("#update_label").html("<span style='color:red'>" + args[1] + "</span>");
|
||||
$("#update_label").html("<span style='color:#ff0000'>" + args[1] + "</span>");
|
||||
setTimeout(function () {
|
||||
$("#box2").hide();
|
||||
if (!$("#box1").is(":visible") && !$("#box").is(":visible") && !$("#box3").is(":visible")) {
|
||||
|
||||
Reference in New Issue
Block a user