fix: 修复Update ROI不能为0的问题

This commit is contained in:
Xu Zhimeng 2024-08-12 10:00:27 +08:00
parent 1b549768e7
commit d82b894c0b

View File

@ -188,7 +188,7 @@ export default {
this.sampleDetail = data
this.emitGetFiles(data)
}
this.ROIAnalyzeLists = data.ROIAnalyzeLists
this.ROIAnalyzeLists = data.ROIAnalyzeLists || []
} else {
if (newVal.sampleId) {
this.getSampleDetail()
@ -360,7 +360,7 @@ export default {
// Update
async handleUpdate() {
const hasEmpty = this.roiParamList.some(
([startChannel, endChannel]) => (!startChannel && startChannel !== '0') || (!endChannel && endChannel !== '0')
([startChannel, endChannel]) => (!startChannel && startChannel != '0') || (!endChannel && endChannel != '0')
)
if (hasEmpty) {
this.$message.warning('Channel cannot be null')