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) {