修复板块切换数据合并:禁止 API 响应缓存(反代按 path 忽略 query 导致两个 tab 数据相同)
This commit is contained in:
1 parent
ef795c46b2
commit
3bfeb81c90
2 files changed
+18
-4
No files matched your search
@@ -468,7 +468,7 @@ export async function fetchSectors(type: SectorType, signal?: AbortSignal): Prom
|
||||
const url = `${baseUrl}/api/sectors?type=${type}`;
|
||||
|
||||
try {
|
||||
const resp = await fetch(url, { method: "GET", signal });
|
||||
const resp = await fetch(url, { method: "GET", signal, cache: "no-store" });
|
||||
if (!resp.ok) return [];
|
||||
const result: SectorResponse = await resp.json();
|
||||
return result.data || [];
|
||||
|
||||
Reference in new issue
Block a user