Browse Source

大大

feature/MultiClientLog
root 1 month ago
parent
commit
afe090af16
  1. 8
      LTEMvcApp/Views/Home/Index.cshtml

8
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('<span class="status-dot status-running"></span><span class="status-text">运行</span>');
}
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('<span class="status-dot status-stopped"></span><span class="status-text">停止</span>');
}
loadAllNetworkConfigs();
},
error: function(xhr) {

Loading…
Cancel
Save