feat: 悬挂ICP备案号,修复验证码、500登录、/admin Failed to Fetch,优化首页编辑器100%全屏平铺
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user