fix(record-card): set generator cost to 0 for task status 3

This commit is contained in:
duanshuwen
2026-07-23 23:27:21 +08:00
parent 8fae0ed483
commit 72b7557ecf

View File

@@ -72,7 +72,7 @@ const isVideoRecord = computed(() => {
const statusText = computed(() => {
const generatorType = props.record.generatorType;
const taskStatus = props.record.taskStatus;
const generatorCost = props.record.generatorCost;
const generatorCost = normalizedTaskStatus.value === 3 ? 0 : props.record.generatorCost;
const typeText =
GENERATOR_TYPE_TEXT[generatorType] || (generatorType === undefined ? "" : `类型${generatorType}`);
const stateText =