fix(record-card): set generator cost to 0 for task status 3
This commit is contained in:
@@ -72,7 +72,7 @@ const isVideoRecord = computed(() => {
|
|||||||
const statusText = computed(() => {
|
const statusText = computed(() => {
|
||||||
const generatorType = props.record.generatorType;
|
const generatorType = props.record.generatorType;
|
||||||
const taskStatus = props.record.taskStatus;
|
const taskStatus = props.record.taskStatus;
|
||||||
const generatorCost = props.record.generatorCost;
|
const generatorCost = normalizedTaskStatus.value === 3 ? 0 : props.record.generatorCost;
|
||||||
const typeText =
|
const typeText =
|
||||||
GENERATOR_TYPE_TEXT[generatorType] || (generatorType === undefined ? "" : `类型${generatorType}`);
|
GENERATOR_TYPE_TEXT[generatorType] || (generatorType === undefined ? "" : `类型${generatorType}`);
|
||||||
const stateText =
|
const stateText =
|
||||||
|
|||||||
Reference in New Issue
Block a user