mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +08:00
✨ Feature(custom): optimize gallery sort trigger logic
ISSUES CLOSED: #470
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user