功能迭代
This commit is contained in:
1 parent
ed890edb85
commit
d1844ce9a2
80 files changed
+1799
-75
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { Code2, Pencil, Plus, Trash2 } from "lucide-react";
|
||||
import { API } from "./api";
|
||||
import { getCurrentSiteCode } from "./siteContext";
|
||||
|
||||
const SITE = "SIT0000000000001";
|
||||
const SITE = getCurrentSiteCode();
|
||||
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(); }
|
||||
/** 自定义代码管理页面。 */
|
||||
|
||||
Reference in new issue
Block a user