补提 dev 上未进主干的 10 个改动(运力组织/运单导入/凭证批次/运输计划) #17

Merged
b2894lxlx merged 10 commits from feature/20261110-补开dev未合并改动-web into master 2026-11-10 17:45:22 +08:00
Showing only changes of commit cc22b23d88 - Show all commits
+3 -1
View File
@@ -143,7 +143,9 @@ export default {
for (const node of tree || []) {
const path = [...parents, String(node.id)];
if (String(node.id) === String(target)) return path;
const matched = this.findOrgPath(target, node.children, path);
// 必须显式传 node.children || []:叶节点的 children 是 undefined,
// 传 undefined 会触发默认参数重新拿到整棵树,逐层重复扫描直到爆栈
const matched = this.findOrgPath(target, node.children || [], path);
if (matched) return matched;
}
return null;