fix集市计数错误 (#11163)
This commit is contained in:
parent
6b83c5d081
commit
0e15a50196
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ export const bazaar = {
|
|||
if (["icons", "themes"].includes(bazaarType)) {
|
||||
showSwitch = true;
|
||||
}
|
||||
const counterElement = contentElement.parentElement.querySelector(".counter");
|
||||
const counterElement = contentElement.previousElementSibling.querySelector(".counter");
|
||||
if (response.data.packages.length === 0) {
|
||||
counterElement.classList.add("fn__none");
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue