账户登录

This commit is contained in:
张锐 committed 2026-11-22 10:14:44 +08:00
1 parent a0c723cdcc
commit 3b555ae815
37 files changed
+728 -26

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
import { useEffect, useState } from "react";
import { Code2, Pencil, Plus, Trash2 } from "lucide-react";
import { API } from "./api";
const API = "http://localhost:8081/api/admin/v1";
const SITE = "SIT0000000000001";
type CodeItem = { code:string; siteCode:string; title:string; content:string; locale:string; device:string; position:string; enabled:boolean; sortNo:number };
async function post(path:string, body:unknown) { const r=await fetch(API+path,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(body)}); if(!r.ok) throw new Error("请求失败"); return r.json(); }