��日志初始化 -->
  <script>
    // 获取日志
    const getLogs = async (loop = false) => {
      let logsList = [];
      try {
        const resp = await request.get("./logs");
        // 如果不是数组，说明返回的是错误信息
        if (!Array.isArray(resp)) {
          throw new Error(resp);
        }
        logsList = resp;
      } catch (err) {
        showMessage({
          content: err.toString(),
          type: "error",
          duration: 5000,
        });
        return;
 