diff --git a/src/views/spectrumAnalysis/beta-analysis.vue b/src/views/spectrumAnalysis/beta-analysis.vue index 9d9c7f6..0231247 100644 --- a/src/views/spectrumAnalysis/beta-analysis.vue +++ b/src/views/spectrumAnalysis/beta-analysis.vue @@ -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')