From e958d692584482c4351ae7383917e650a0ef6dc1 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 9 Oct 2026 16:49:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A2=98=E7=9B=AE=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E8=BF=9E=E7=9D=80=E5=BF=AB=E7=82=B9=E5=87=A0=E4=B8=AA=E7=9F=A5?= =?UTF-8?q?=E8=AF=86=E7=82=B9=EF=BC=8C=E5=88=97=E8=A1=A8=E5=81=B6=E5=B0=94?= =?UTF-8?q?=E5=81=9C=E5=9C=A8=E5=89=8D=E4=B8=80=E4=B8=AA=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E7=82=B9=E7=9A=84=E9=A2=98=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/web/src/oj/problem/list.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/src/oj/problem/list.vue b/apps/web/src/oj/problem/list.vue index 8dfe041..560afbf 100644 --- a/apps/web/src/oj/problem/list.vue +++ b/apps/web/src/oj/problem/list.vue @@ -94,8 +94,11 @@ const hasExtraFilter = computed( () => !!(query.keyword || query.difficulty || query.author || query.type), ) +// 连着点几个知识点时,先发的请求可能后回来(按人数排序那条要慢一截),只认最后一次 +let listSeq = 0 async function listProblems() { if (query.page < 1) query.page = 1 + const seq = ++listSeq const offset = (query.page - 1) * query.limit const res = await getProblemList(offset, query.limit, { keyword: query.keyword, @@ -107,6 +110,7 @@ async function listProblems() { // 不看 isAuthed:首屏请求发出时登录信息往往还没回来,后端对没登录的人自己会忽略它 undone: undoneOn.value ? "1" : "", }) + if (seq !== listSeq) return total.value = res.total problems.value = res.results loaded.value = true