修缮 snack

This commit is contained in:
CrescentLeaf
2025-11-21 21:52:17 +08:00
parent 32719b45ea
commit cbdccfb5a7
4 changed files with 8 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ interface SnackbarOptions extends Options {
export function checkApiSuccessOrSncakbar(re: ApiCallbackMessage, msg_ahead: string, opinions_override: Options = {}): Snackbar | null {
return re.code != 200 ? snackbar(
Object.assign({
message: `${msg_ahead}: ${re.msg.indexOf("Failed to fetch") != -1
message: `${msg_ahead}: ${re.msg.indexOf("fetch") != -1
? "HTTP 请求失败"
: re.msg
} [${re.code}]`,