Dev qing #19

Merged
qing merged 74 commits from dev_qing into main 2026-08-05 12:31:42 +08:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 15f8c9552d - Show all commits

No files matched your search

+2 -1
View File
@@ -34,7 +34,8 @@ auto list() -> std::string {
processes.push_back({ /* 向json中推入对象 */
{"index", i},
{"pid", ppool[i].pid()},
{"status", ppool[i].check()}
{"running", ppool[i].isRunning()},
{"command", ppool[i].check()}
});
}
+2 -2
View File
@@ -100,11 +100,11 @@
const p = list[i];
const tr = document.createElement("tr");
const pid = p.pid;
const status = p.status === true ? "运行中" : (p.status === false ? "已停止" : (p.status || "未知"));
const status = p.running === true ? "运行中" : (p.running === false ? "已停止" : "未知");
tr.innerHTML = `
<td>${pid}</td>
<td>${status}</td>
<td>${p.command || p.target || "-"}</td>
<td>${p.command || "-"}</td>
<td><button class="stopBtn" onclick="stopBtn(${pid})">停止</button></td>
`;
tbody.appendChild(tr);