Skip to content

Commit

Permalink
recover
Browse files Browse the repository at this point in the history
  • Loading branch information
mingchiuli committed Jun 2, 2024
1 parent 99cadc6 commit a0d581d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/views/sys/EditView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,11 @@ const connect = () => {
const key = form.id ? `${form.userId}/${form.id}` : form.userId!.toString()
client.onConnect = _frame => {
client.subscribe(`/edits/push/${key}`, res => {
const v = res.body
if (v !== String(version)) {
version--
return
}
client.subscribe(`/edits/push/${key}`, _res => {
pushAllData()
})
client.subscribe(`/edits/pull/${key}`, res => {
const v = res.body
if (v !== String(version)) {
version--
return
}
client.subscribe(`/edits/pull/${key}`, _res => {
pullAllData()
})
}
Expand Down

0 comments on commit a0d581d

Please sign in to comment.