| | |
| | | }, |
| | | created() { |
| | | getDetailData(this.$route.query.id).then(res => { |
| | | if(!res.detailExperimentVOS){ |
| | | res.detailExperimentVOS = []; |
| | | } |
| | | this.detailData = res; |
| | | // 确保detailExperimentVOS存在且是数组 |
| | | this.detailData.detailExperimentVOS = this.detailData.detailExperimentVOS || []; |
| | | // this.detailData.detailExperimentVOS = this.detailData.detailExperimentVOS || []; |
| | | if (this.detailData.detailExperimentVOS.length) { |
| | | this.selectedExperimenter = this.detailData.detailExperimentVOS[0]; |
| | | this.activeNameTab = this.selectedExperimenter.userName; |