This commit is contained in:
2025-10-05 15:59:07 +08:00
parent 70d4629e27
commit be3b644531
6 changed files with 80 additions and 766 deletions

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 })