fix: 04 q-tree clear current value

This commit is contained in:
puriphatt 2024-07-23 07:36:28 +00:00
parent 9429fac0e3
commit 708408a252

View file

@ -1466,10 +1466,12 @@ watch(
} }
if (currentIdGrop === node.id) { if (currentIdGrop === node.id) {
expandedTree = [];
expandedTree = expandedTree.filter( expandedTree = expandedTree.filter(
(i) => node.id !== i, (i) => node.id !== i,
); );
currentIdGrop = ''; currentIdGrop = '';
currentIdType = '';
productMode = 'group'; productMode = 'group';
return; return;