fix: (04) Stat missing

This commit is contained in:
Net 2024-07-25 11:01:00 +07:00
parent 84e12bfae6
commit 57573e449e

View file

@ -1459,12 +1459,14 @@ watch(
async () => {
if (node.type === 'group') {
if (currentIdGrop !== node.id) {
filterStat.push('group');
await enterGroup(node.id, node.name);
return;
}
if (currentIdGrop === node.id) {
expandedTree = [];
filterStat = [];
expandedTree = expandedTree.filter(
(i) => node.id !== i,
);
@ -1477,10 +1479,14 @@ watch(
}
if (node.type === 'type') {
if (currentIdType !== node.id) {
filterStat.push('group', 'type');
await enterType(node.id, node.name);
return;
}
if (currentIdType === node.id) {
filterStat = filterStat.filter((item) => {
return item !== 'type';
});
currentIdType = '';
productMode = 'type';
expandedTree.pop();