This commit is contained in:
李志鹏
2026-04-14 15:07:20 +08:00
parent 54cc7bd359
commit 68de44236d
2 changed files with 7 additions and 4 deletions

View File

@@ -93,7 +93,7 @@
const maxItemNum = ref(2)
const loading = ref(false)
const finish = ref(false)
const total = ref(30)
const total = ref(0)
const page = ref(1)
const size = ref(10)
const nameOrId = ref("")
@@ -107,9 +107,9 @@
}
const data = {
page: page.value,
size: size.value,
nameOrId: nameOrId.value
size: size.value
}
if (nameOrId.value) data.nameOrId = nameOrId.value
console.log(data)
setTimeout(() => {
for (let i = 0; i < size.value; i++) {
@@ -134,6 +134,7 @@
]
})
}
total.value = 30
page.value++
finish.value = page.value > total.value / 10
loading.value = false