From 571e5606f9359659f623b7937c2becfcdb993d56 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Fri, 16 Sep 2022 10:00:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=90=9C=E7=B4=A2=E8=AF=8D=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=88=97=E8=A1=A8=E5=90=8E=20=E6=9C=AA=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=BF=80=E6=B4=BB=E9=A6=96=E6=9D=A1=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E7=BA=AA=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpns/ClipItemList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cpns/ClipItemList.vue b/src/cpns/ClipItemList.vue index fbc149f..a2fac9a 100644 --- a/src/cpns/ClipItemList.vue +++ b/src/cpns/ClipItemList.vue @@ -237,7 +237,10 @@ const handleOperateClick = ({ id, item }) => { } } // 父组件中改变了引用类型的地址 故要用 getter返回 -watch(props.showList, () => (activeIndex.value = 0)) +watch( + () => props.showList, + () => (activeIndex.value = 0) +) onMounted(() => { // 监听键盘事件 document.addEventListener('keydown', (e) => {