fix(缺陷管理): 初始状态设置结束状态报错问题

--bug=1038578 --user=宋昌昌 【项目管理】-模版管理-缺陷模版-工作流设置报错 https://www.tapd.cn/55049933/s/1493851
This commit is contained in:
song-cc-rock 2024-04-10 20:37:37 +08:00 committed by Craftsman
parent 214620dbe5
commit 0987e1fc82

View File

@ -70,7 +70,7 @@
<div class="flex items-center justify-between">
<div class="relative">
<MsTag class="relative" size="large" theme="light">{{ record.name }}</MsTag>
<span v-if="record.statusDefinitions.join() === 'START'" class="absolute -top-6 left-7">
<span v-if="record.statusDefinitions.join().includes('START')" class="absolute -top-6 left-7">
<svg-icon width="36px" height="36px" class="inline-block text-[white]" name="start"></svg-icon
></span>
</div>
@ -299,6 +299,7 @@
...item,
[item.id]: item.name,
index,
currentState: item.statusDefinitions.join().includes('END'),
};
}
return {
@ -308,6 +309,7 @@
currentState: item.statusDefinitions.join().includes('END'),
};
});
console.log(dataList.value);
} catch (error) {
console.log(error);
} finally {