fix: 每次打开商店弹窗时重新获取数据库最新数据
关闭商店弹窗时重置 shopLoaded 标志,确保下次打开时重新请求 /shop/items,避免展示过期数据。
This commit is contained in:
@@ -154,6 +154,7 @@ export function closeShopModal() {
|
||||
if (modal) {
|
||||
modal.style.display = "none";
|
||||
}
|
||||
shopLoaded = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user