fix: (04) Stat missing
This commit is contained in:
parent
84e12bfae6
commit
57573e449e
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue