fix: 收口三视图错误提示

This commit is contained in:
hh
2026-07-15 18:18:35 +08:00
parent 755e210951
commit 79d7344134
7 changed files with 42 additions and 421 deletions
+5 -1
View File
@@ -3,6 +3,7 @@ import type { ChangeEvent, CSSProperties, KeyboardEvent } from "react";
import { createPortal } from "react-dom";
import { RefreshCw, Upload, User, X } from "lucide-react";
import { api } from "../api";
import { generationErrorText } from "../generation-error";
import type { ModelEntity } from "../types";
import { MediaLightbox, useBodyScrollLock, useOverlayTransition } from "../components/overlays";
import "../models-page.css";
@@ -154,7 +155,10 @@ function ModelDetailModal({ model, close, onZoom, onSaved, onNotify, onBillingCh
if (["failed", "cancelled"].includes(result.status)) {
onBillingChanged?.();
setTriviewStatus("");
onNotify?.("error", result.error_message || "三视图生成失败,预留积分已释放");
onNotify?.("error", generationErrorText(
result.error,
result.error_message || "三视图生成失败,预留积分已释放",
));
return;
}
} catch (error) {