Refresh visible news risk ratings after analysis
Development CI / check-and-build (push) Successful in 1m29s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Failing after 5s

Poll only visible news IDs and update ratings for matching revisions without replacing the feed, scrolling, or clearing pending-news notifications. Bind refresh results to the page and session, and cover stale responses and bounded ID queries.
This commit is contained in:
eezd committed 2026-10-30 18:41:03 +08:00
1 parent 4f43ca8b57
commit 91bc65df75
7 files changed
+101 -3

No files matched your search

+2 -1
View File
@@ -3,11 +3,12 @@ import { request } from "@/http/axios"
import { consumeStream } from "@/http/stream"
/** 分页查询新闻 */
export function listNewsApi(params: News.NewsQuery) {
export function listNewsApi(params: News.NewsQuery, notify = true) {
return request<News.ListNewsResponseData>({
url: "/news",
method: "get",
params,
notify,
paramsSerializer: { indexes: null }
})
}
+1
View File
@@ -15,6 +15,7 @@ export interface NewsBrief {
}
export interface NewsQuery {
ids?: number[]
source?: string[]
q?: string
start?: string