diff --git a/src/views/realTimeMonitor/components/morePicPreveiw.vue b/src/views/realTimeMonitor/components/morePicPreveiw.vue index 80181ad..3a9f04b 100644 --- a/src/views/realTimeMonitor/components/morePicPreveiw.vue +++ b/src/views/realTimeMonitor/components/morePicPreveiw.vue @@ -83,23 +83,23 @@ export default { } else { this.terminalPhoto = res.data.list; } - let newDataList = []; - let current = 0; - if (this.terminalPhoto && this.terminalPhoto.length > 0) { - for (let i = 0; i <= this.terminalPhoto.length - 1; i++) { - if (i % this.photoNum !== 0 || i === 0) { - if (!newDataList[current]) { - newDataList.push([this.terminalPhoto[i]]); - } else { - newDataList[current].push(this.terminalPhoto[i]); - } - } else { - current++; - newDataList.push([this.terminalPhoto[i]]); - } - } - } - this.terminalPhoto = [...newDataList]; + // let newDataList = []; + // let current = 0; + // if (this.terminalPhoto && this.terminalPhoto.length > 0) { + // for (let i = 0; i <= this.terminalPhoto.length - 1; i++) { + // if (i % this.photoNum !== 0 || i === 0) { + // if (!newDataList[current]) { + // newDataList.push([this.terminalPhoto[i]]); + // } else { + // newDataList[current].push(this.terminalPhoto[i]); + // } + // } else { + // current++; + // newDataList.push([this.terminalPhoto[i]]); + // } + // } + // } + // this.terminalPhoto = [...newDataList]; }) .catch((err) => { console.log(err); //代码错误、请求失败捕获