fix: 收口三视图错误提示
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user