feat: prefix and anti multi-check
This commit is contained in:
@@ -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/admin").then(
|
||||
(resp) => resp.json()
|
||||
);
|
||||
const json: Record<string, string> = await get("/api/admin");
|
||||
const table = ref.current.children[0];
|
||||
const tbody = table.children[table.children.length - 1];
|
||||
for (const tr_index in tbody.children) {
|
||||
|
||||
Reference in New Issue
Block a user