Skip to content

Commit 3c874c9

Browse files
committed
防止请求「最热」主题列表数据时缓存
1 parent c9c27cc commit 3c874c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function fetchLatestTopics(options?: RequestInit) {
6363
}
6464

6565
export function fetchHotTopics(options?: RequestInit) {
66-
return legacyRequest<Topic[]>(`${V2EX_LEGACY_API}/topics/hot.json`, options)
66+
return legacyRequest<Topic[]>(`${V2EX_LEGACY_API}/topics/hot.json?r=${Date.now()}`, options)
6767
}
6868

6969
async function request<Data>(url: string, options?: RequestInit): Promise<DataWrapper<Data>> {

0 commit comments

Comments
 (0)