Merge branch 'main' of https://git.23cm.cn/toom1996/frontend_v2
Some checks failed
deploy / deploy (push) Has been cancelled
Some checks failed
deploy / deploy (push) Has been cancelled
This commit is contained in:
@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user