* [bug #55914, done, 0.3h] select first space after delete current.

This commit is contained in:
sunhao
2024-10-17 15:25:12 +08:00
committed by 刘刚
parent 1759c94ca4
commit 2e1b727904
+11 -1
View File
@@ -656,7 +656,17 @@ const commands =
{
if(res && res.result === 'success')
{
getDocApp().delete('space', spaceID);
const docApp = getDocApp();
if(spaceID === docApp.spaceID && docApp.mode !== 'home')
{
const spaceList = docApp.spaceList;
if(spaceList.length)
{
docApp.selectSpace(spaceList[0].id);
return;
}
}
docApp.delete('space', spaceID);
}
}
});