admin-vben/packages
Akuria ca5931e8c4
fix: preserve tree default value when treeData starts empty (#7908)
When treeData is initially an empty array (e.g. before async data
arrives), updateTreeValue() would clear the modelValue because no
matching items could be found in the empty flattened data. This caused
default values to be lost.

Only call updateTreeValue() when flattenData has items, so that
modelValue is preserved until the actual tree data arrives.

Fixes #6522
2026-05-16 10:41:42 +08:00
..
@core fix: preserve tree default value when treeData starts empty (#7908) 2026-05-16 10:41:42 +08:00
constants chore: release 5.7.0 2026-03-14 09:14:23 +08:00
effects fix(@vben/layouts): correct logo theme in semi-dark sidebar (#7785) (#7902) 2026-05-10 10:41:43 +08:00
icons chore: release 5.7.0 2026-03-14 09:14:23 +08:00
locales feat: add time zone option to preference settings (#7871) 2026-05-03 12:16:58 +08:00
preferences feat: enable project-scoped preferences extension tabs (#7803) 2026-04-13 17:52:17 +08:00
stores fix(@vben/stores): respect base URL when opening route in new window (#7837) 2026-05-01 06:49:05 +08:00
styles fix: check deps 2026-04-13 17:52:16 +08:00
types chore: release 5.7.0 2026-03-14 09:14:23 +08:00
utils Merge branch 'fork/Lmx1220/main' 2026-03-15 03:53:43 +08:00