feat: 悬挂ICP备案号,修复验证码、500登录、/admin Failed to Fetch,优化首页编辑器100%全屏平铺

This commit is contained in:
Chen Xiao
2026-06-01 15:28:18 +08:00
parent 7fec1aa9fd
commit 038ce9e831
12 changed files with 609 additions and 59 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ export default function IssueDetail() {
const fetchIssue = async () => {
try {
const token = localStorage.getItem('token');
const res = await fetch(`http://localhost:3001/api/issues/${id}`, {
const res = await fetch(`/api/issues/${id}`, {
headers: { Authorization: `Bearer ${token}` }
});
const data = await res.json();
@@ -56,7 +56,7 @@ export default function IssueDetail() {
setReplyMsg('');
try {
const token = localStorage.getItem('token');
const res = await fetch(`http://localhost:3001/api/issues/${id}/reply`, {
const res = await fetch(`/api/issues/${id}/reply`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',