From 8c929f6e0509fdfcb6e9fd26ce38cdfb0f2a8029 Mon Sep 17 00:00:00 2001 From: lxfight <1686540385@qq.com> Date: Thu, 5 Jun 2025 10:56:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=90=8E=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src/views/ExtensionPage.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dashboard/src/views/ExtensionPage.vue b/dashboard/src/views/ExtensionPage.vue index 6936fd7dd..5c9649246 100644 --- a/dashboard/src/views/ExtensionPage.vue +++ b/dashboard/src/views/ExtensionPage.vue @@ -191,6 +191,17 @@ const updateExtension = async (extension_name) => { Object.assign(extension_data, res.data); onLoadingDialogResult(1, res.data.message); + setTimeout(async () => { + toast(`正在刷新插件列表...`, "info", 2000); + try { + await getExtensions(); + toast("插件列表已刷新!", "success"); + + } catch (error) { + const errorMsg = error.response?.data?.message || error.message || String(error); + toast(`刷新插件列表时发生错误: ${errorMsg}`, "error"); + } + }, 1000); } catch (err) { toast(err, "error"); }