fix:当用户切换商店模式(星火、APM、混合)时,目前应用会通过 window.location.reload() 重新加载整个页面。这会导致性能损耗和重复的网络请求。本计划旨在取消页面重载,并实现模式数据的缓存。

This commit is contained in:
2026-03-11 08:45:28 +08:00
parent edd9368c56
commit 257065018b
2 changed files with 57 additions and 3 deletions

View File

@@ -32,7 +32,5 @@ const modes = [
const setMode = (mode: StoreMode) => {
currentStoreMode.value = mode;
localStorage.setItem("store_mode", mode);
// Reload page to re-fetch data based on new mode
window.location.reload();
};
</script>