diff --git a/src/components/RunwayLooks.astro b/src/components/RunwayLooks.astro index 6897780..2614d68 100644 --- a/src/components/RunwayLooks.astro +++ b/src/components/RunwayLooks.astro @@ -710,12 +710,19 @@ const seasonOptions: { value: string; label: string }[] = [ return list }, - // 事件处理方法 + // 点击抽屉开关 toggleGroup(group: "designers" | "collection" | "season" | "year") { this.collapsedGroups[group] = !this.collapsedGroups[group] localStorage.setItem(`showsg-${group}`, this.collapsedGroups[group] ? "1" : "") }, + toggleBrand(id: number) { + const idx = this.selectedBrands.indexOf(id) + if (idx >= 0) this.selectedBrands.splice(idx, 1) + else this.selectedBrands.push(id) + this.refreshFilter() + }, + refreshFilter() { this.loadPage(1) },