add oauth loginlog & fix bugs

This commit is contained in:
ljw committed 2024-09-19 10:44:49 +08:00
1 parent ebd1feb8d1
commit a4b413dadb
48 files changed
+3477 -184

No files matched your search

+7 -1
View File
@@ -53,7 +53,13 @@ const autoWriteServer = () => {
}
if (res.data.peers) {
localStorage.setItem('peers', JSON.stringify(res.data.peers))
oldPeers = JSON.parse(localStorage.getItem('peers')) || {}
Object.keys(res.data.peers).forEach(k => {
if(!oldPeers[k]) {
oldPeers[k] = res.data.peers[k]
}
})
localStorage.setItem('peers', JSON.stringify(oldPeers))
}
}
})