feat: prefix and anti multi-check

This commit is contained in:
KirinBaka
2025-04-22 15:34:22 +08:00
parent bebf2c9640
commit ffc89fd069
10 changed files with 46 additions and 28 deletions

View File

@@ -1,14 +1,13 @@
import React from "react";
import Head from "next/head";
import { get, post } from "@/common";
const ReportPage = () => {
const ref = React.useRef();
const getReport = async () => {
const resp = await fetch("/api/html").then((resp) => resp.json());
const resp = await get("/api/html");
ref.current.innerHTML = resp.html;
const json: Record<string, string> = await fetch("/api/tool").then((resp) =>
resp.json()
);
const json: Record<string, string> = await get("/api/tool");
const table = ref.current.children[0];
const tbody = table.children[table.children.length - 1];
for (const tr_index in tbody.children) {