mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 05:30:05 +00:00
fix: 隐藏了ID没法添加Agent
This commit is contained in:
@@ -104,7 +104,8 @@
|
||||
},
|
||||
mounted() {
|
||||
$('.yellow.info.icon').popup({
|
||||
popup: '.ui.content.popup'
|
||||
popup: '.ui.content.popup',
|
||||
exclusive: true,
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
@@ -172,7 +173,7 @@
|
||||
ws.onmessage = function (evt) {
|
||||
const oldServers = statusCards.servers
|
||||
statusCards.servers = JSON.parse(evt.data)
|
||||
for (let i = 0; i < statusCards.servers.length; i++) {
|
||||
for (let i = 0; i < statusCards.servers.length; i++) {
|
||||
const ns = statusCards.servers[i];
|
||||
if (!ns.Host) ns.live = false
|
||||
else {
|
||||
@@ -183,16 +184,6 @@
|
||||
ns.live = true
|
||||
}
|
||||
}
|
||||
for (let j = 0; j < oldServers.length; j++) {
|
||||
const os = oldServers[j];
|
||||
if (ns.ID == os.ID) {
|
||||
break
|
||||
}
|
||||
// 新加入的仔
|
||||
$('#' + ns.ID + ' .yellow.info.icon').popup({
|
||||
popup: '.ui.content.popup'
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
ws.onclose = function () {
|
||||
|
||||
Reference in New Issue
Block a user