fix: a problem that duplicated server would not show the info in observatory window

This commit is contained in:
mzz2017 committed 2021-09-28 22:12:17 +08:00
1 parent 12828e2d7d
commit b3373d9701
1 file changed
+5 -1
+5 -1
View File
@@ -767,7 +767,11 @@ export default {
observatory(val) {
for (const info of val.body) {
this.connectedServerInfo.some(x => {
if (JSON.stringify(info.which) === JSON.stringify(x.which)) {
if (
info.which._type === x.which._type &&
info.which.id === x.which.id &&
info.which.sub === x.which.sub
) {
for (const k in info) {
if (k === "which" || !info.hasOwnProperty(k)) {
continue;