Feature(custom): optimize second uploader

ISSUES CLOSED: #241,#238
This commit is contained in:
Kuingsmile
2024-09-11 14:41:28 +08:00
parent 07cf63a41e
commit 0565ce34cd
7 changed files with 124 additions and 20 deletions

View File

@@ -428,9 +428,7 @@ function handleDetectShiftKey(event: KeyboardEvent) {
}
const filterList = computed(() => {
const start = new Date().getTime()
const res = getGallery()
console.log(`filterList: ${new Date().getTime() - start}ms`)
return res
})
@@ -487,9 +485,7 @@ function getGallery(): IGalleryItem[] {
}
async function updateGallery() {
const start = new Date().getTime()
images.value = (await $$db.get({ orderBy: 'desc' }))!.data
console.log(`updateGallery: ${new Date().getTime() - start}ms`)
}
watch(