This commit is contained in:
xuyue committed 2025-10-05 15:59:07 +08:00
1 parent 70d4629e27
commit be3b644531
6 files changed
+80 -766

No files matched your search

+5 -1
View File
@@ -86,7 +86,11 @@ const initSync = async () => {
problemId: props.problem,
editorView: editorView.value as EditorView,
onStatusChange: (status) => {
if (status.error === "超管已离开" && !status.connected) {
// 处理需要断开同步的情况
if (
(status.error === "超管已离开" || status.error === "缺少超级管理员")
&& !status.connected
) {
emit("syncClosed")
}
emit("syncStatusChange", { otherUser: status.otherUser })