fix集市计数错误 (#11163)

This commit is contained in:
iamqiz 2024-04-27 17:02:15 +08:00 committed by GitHub
parent 6b83c5d081
commit 0e15a50196
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {