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) => {