From 3ddf02e002f6a1aa77675f9dbfd2cae1dd879d2a Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 23 May 2023 20:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=98=E5=88=B6=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/carouselChart.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/views/components/carouselChart.vue b/src/views/components/carouselChart.vue index 66a1dab..92eac44 100644 --- a/src/views/components/carouselChart.vue +++ b/src/views/components/carouselChart.vue @@ -200,11 +200,7 @@ export default { this.fiveList = this.terminalPhoto.slice(this.page - 1, this.pagesize); this.total = this.terminalPhoto.length / this.pagesize; console.log("this.bigPicPath"); - this.$nextTick(function () { - // codeing - console.log(localStorage.getItem("piclinePoints")); - }); this.localPoints = this.terminalPhoto[0].list; console.log(this.localPoints); if (this.localPoints !== "") { @@ -278,6 +274,8 @@ export default { this.activeSmall = 4; this.smallLeftClick(); } + this.localPoints = this.terminalPhoto[this.bigNum].list; + this.drawline(); }, //点击右侧切换图片 rightClick() { @@ -290,6 +288,8 @@ export default { console.log(this.activeSmall); this.smallRightClick(); } + this.localPoints = this.terminalPhoto[this.bigNum].list; + this.drawline(); }, //点击小图变成大图 handleBigpic(row, index) { @@ -297,6 +297,8 @@ export default { console.log(); this.activeSmall = index; this.bigPicPath = row.path; + this.localPoints = row.list; + this.drawline(); }, //点击小图切换左侧 smallLeftClick() {