mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-07 04:52:43 +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}`)"
|
:placeholder="t(`pages.gallery.sortBy.${currentSortField}`)"
|
||||||
:title="t('pages.gallery.sort')"
|
:title="t('pages.gallery.sort')"
|
||||||
:key-list="['name', 'ext', 'time', 'check']"
|
:key-list="['name', 'ext', 'time', 'check']"
|
||||||
|
@change="sortFile(currentSortField)"
|
||||||
>
|
>
|
||||||
<template #item="{ item }">
|
<template #item="{ item }">
|
||||||
{{ t(`pages.gallery.sortBy.${item}`) }}
|
{{ t(`pages.gallery.sortBy.${item}`) }}
|
||||||
@@ -593,10 +594,6 @@ watch(useShortUrl, newVal => {
|
|||||||
saveConfig(configPaths.settings.useShortUrl, newVal === t('pages.gallery.shortUrl'))
|
saveConfig(configPaths.settings.useShortUrl, newVal === t('pages.gallery.shortUrl'))
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(currentSortField, () => {
|
|
||||||
sortFile(currentSortField.value)
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(filterList, () => {
|
watch(filterList, () => {
|
||||||
clearChoosedList()
|
clearChoosedList()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user