Feature(custom): optimize gallery sort trigger logic

ISSUES CLOSED: #470
This commit is contained in:
Kuingsmile
2026-01-29 20:52:47 +08:00
parent a0f3b538f3
commit b21789545f

View File

@@ -127,6 +127,7 @@
:placeholder="t(`pages.gallery.sortBy.${currentSortField}`)"
:title="t('pages.gallery.sort')"
:key-list="['name', 'ext', 'time', 'check']"
@change="sortFile(currentSortField)"
>
<template #item="{ item }">
{{ t(`pages.gallery.sortBy.${item}`) }}
@@ -593,10 +594,6 @@ watch(useShortUrl, newVal => {
saveConfig(configPaths.settings.useShortUrl, newVal === t('pages.gallery.shortUrl'))
})
watch(currentSortField, () => {
sortFile(currentSortField.value)
})
watch(filterList, () => {
clearChoosedList()
})