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