     showMessage({
            type: "info",
            content: line,
          });
          await delay(800);
        }
      }
    }

    // 清空日志
    document.getElementById("clearLogBtn").addEventListener('click', async e => {
      e.preventDefault();
      try {
        await request.get("./clearLog");
        getLogs();
      } catch (err) {
        showMessage({
          content: err.toString(),
          type: "error",
          duration: 5000,
        });
      }
    });

    // 显示/