fix: 修正评论获取错误消息中的冒号格式
将错误消息中的英文冒号改为中文冒号以保持统一格式
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
const response = await fetch(`${baseUrl}/api/comments?${params}`);
|
const response = await fetch(`${baseUrl}/api/comments?${params}`);
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`获取评论失败: ${response.status} ${response.statusText}`);
|
throw new Error(`获取评论失败:${response.status} ${response.statusText}`);
|
||||||
}
|
}
|
||||||
return response.json();
|
return response.json();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user