From bdb5442659ac1bc46fdf808c586dff51244dba47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Tue, 15 Aug 2023 02:02:50 +0800 Subject: [PATCH] feat(task): auto reload page --- public/panel/views/task.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/panel/views/task.html b/public/panel/views/task.html index c277369a..60e79912 100644 --- a/public/panel/views/task.html +++ b/public/panel/views/task.html @@ -69,6 +69,11 @@ Date: 2023-07-22 $('#plugin-install-log').html('实时安装日志获取失败,请刷新重试!'); return false; } + if (result.data.includes('完成') || result.data.includes('错误')) { + setTimeout(function () { + location.reload(); + }, 2000); + } $('#plugin-install-log').html(result.data); } })