Quellcode durchsuchen

feat: 定时器

tangning vor 1 Jahr
Ursprung
Commit
b0b3f15d92
1 geänderte Dateien mit 5 neuen und 3 gelöschten Zeilen
  1. 5 3
      src/view/case/photos/draggable.vue

+ 5 - 3
src/view/case/photos/draggable.vue

@@ -47,9 +47,11 @@ async function onChange() {
   emit("changeList", apiList);
 }
 function handleItem(id) {
-  let index = list.value.findIndex(item => item.id === id)
-  console.log(index)
-  emit("handleItem", index);
+  setTimeout(() => {
+    let index = list.value.findIndex(item => item.id === id)
+    console.log(index)
+    emit("handleItem", index);
+  } , 500)
   
 }
 function handleSearch(val:string) {