fix: multi owner

This commit is contained in:
tao.chen
2026-08-12 18:58:18 +08:00
parent 495018de34
commit 8abe505d17
3 changed files with 40 additions and 26 deletions
@@ -293,7 +293,8 @@ export const useScriptWorkspaceStore = create<State>((set, get) => {
next.delete(path);
} else {
next.add(path);
if (!state.loadedChildPaths.has(path)) {
// group key (`__group__<owner_id>`) 不是 workspace 路径,不调 loadChildren
if (!path.startsWith("__group__") && !state.loadedChildPaths.has(path)) {
void get().loadChildren(path);
}
}