refactor: update comments for clarity and consistency across multiple files

This commit is contained in:
HouYunFei
2026-08-05 14:17:03 +08:00
parent 0f6809251a
commit 5a7116f924
43 changed files with 218 additions and 223 deletions
+1 -1
View File
@@ -352,7 +352,7 @@ function readApiErrorMessage(value: unknown): string {
}
if (typeof value !== "object") return "";
const payload = value as { msg?: unknown; message?: unknown; error?: unknown; detail?: unknown };
// error 可能是字符串或含 message 的对象
// error may be a string or an object containing a message.
const errorMsg =
typeof payload.error === "string"
? payload.error