update
This commit is contained in:
@ -55,7 +55,7 @@ export function hydrateFilterOptions(self: any, rawJson?: string | null): void {
|
||||
* 注意「X年前」是既有硬编码中文,与语言无关,保持原样以免改变现有 UI。
|
||||
*/
|
||||
export function buildYearOptions(): FilterOption[] {
|
||||
const currentYear = new Date().getFullYear()
|
||||
const currentYear = new Date().getFullYear() + 1
|
||||
const yearFloor = currentYear - 9
|
||||
const options: FilterOption[] = []
|
||||
for (let y = currentYear; y >= yearFloor; y--) options.push({ value: y, label: String(y) })
|
||||
|
||||
Reference in New Issue
Block a user