From afe090af1637f70776940bfc95d7ecdc17aedddf Mon Sep 17 00:00:00 2001 From: root <295172551@qq.com> Date: Fri, 27 Jun 2025 00:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LTEMvcApp/Views/Home/Index.cshtml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/LTEMvcApp/Views/Home/Index.cshtml b/LTEMvcApp/Views/Home/Index.cshtml index 5e6d00c..50b46e1 100644 --- a/LTEMvcApp/Views/Home/Index.cshtml +++ b/LTEMvcApp/Views/Home/Index.cshtml @@ -471,6 +471,10 @@ data: JSON.stringify({ ip: ip, port: port, key: key }), success: function(response) { showToast('网络启动成功', 'success'); + // 立即更新状态列 + if (response && response.data === 1) { + row.find('td').eq(6).html('运行'); + } loadAllNetworkConfigs(); }, error: function(xhr) { @@ -504,6 +508,10 @@ data: JSON.stringify({ ip: ip, port: port, key: key }), success: function(response) { showToast('网络停止成功', 'success'); + // 只要isSuccess为true就立即更新状态 + if (response && response.isSuccess) { + row.find('td').eq(6).html('停止'); + } loadAllNetworkConfigs(); }, error: function(xhr) {