From bf2f10858d6a1887e9b42d7994a3dc9d67a26cd3 Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Thu, 11 May 2023 12:40:29 +0800 Subject: [PATCH] =?UTF-8?q?web:=20=E4=BF=AE=E5=A4=8Dpc=E7=AB=AF=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/web/src/components/PopCatalog.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web/src/components/PopCatalog.vue b/modules/web/src/components/PopCatalog.vue index e38b2d796..65ba2ab9b 100644 --- a/modules/web/src/components/PopCatalog.vue +++ b/modules/web/src/components/PopCatalog.vue @@ -50,11 +50,12 @@ const virtualListdata = computed(() => { let virtualListDataSource = new Array(length); let i = 0; - while ((i++) < length) { + while (i < length) { virtualListDataSource[i] = { index: i, catas: catalogValue.slice(2 * i, 2 * i + 2) } + i++; } return virtualListDataSource; });