From 9cc03ee7498518b2b86bca97e18f19600ec76bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Fri, 10 Apr 2026 15:21:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=B7=E7=9B=98=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api.js | 7 +++++++ src/views/Dashboard.vue | 10 ++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/api.js b/src/api.js index e3f24c3..ae2b42a 100644 --- a/src/api.js +++ b/src/api.js @@ -47,6 +47,13 @@ export async function flushIndex() { return data } +export async function fetchFlushStatus() { + const { data } = await axios.get(`${BASE}/admin/flush/status`, { + timeout: 5000, + }) + return data +} + export async function fetchWorkers() { const { data } = await axios.get(`${BASE}/admin/workers`, { timeout: 10000, diff --git a/src/views/Dashboard.vue b/src/views/Dashboard.vue index e235afc..76a30da 100644 --- a/src/views/Dashboard.vue +++ b/src/views/Dashboard.vue @@ -1,6 +1,6 @@