fix: 修复Update ROI不能为0的问题
This commit is contained in:
parent
1b549768e7
commit
d82b894c0b
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user