砍掉 /m HTML 页面,只保留 /m/json 给 React 组件用

This commit is contained in:
2569718930@qq.com
2026-05-14 00:23:03 +08:00
parent fc48795299
commit 2202f8e211
3 changed files with 20 additions and 175 deletions
@@ -41,7 +41,7 @@ export default function MonitorPanel() {
const fetchData = useCallback(async () => {
try {
const res = await fetch("/api/m?json=1");
const res = await fetch("/api/m");
const data = await res.json();
setCities(data);
setTime(new Date().toLocaleTimeString());