mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-01 16:39:38 +08:00
✨ Feature(custom): optimize second uploader
ISSUES CLOSED: #241,#238
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user