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 () => {
|
async () => {
|
||||||
if (node.type === 'group') {
|
if (node.type === 'group') {
|
||||||
if (currentIdGrop !== node.id) {
|
if (currentIdGrop !== node.id) {
|
||||||
|
filterStat.push('group');
|
||||||
await enterGroup(node.id, node.name);
|
await enterGroup(node.id, node.name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentIdGrop === node.id) {
|
if (currentIdGrop === node.id) {
|
||||||
expandedTree = [];
|
expandedTree = [];
|
||||||
|
filterStat = [];
|
||||||
expandedTree = expandedTree.filter(
|
expandedTree = expandedTree.filter(
|
||||||
(i) => node.id !== i,
|
(i) => node.id !== i,
|
||||||
);
|
);
|
||||||
|
|
@ -1477,10 +1479,14 @@ watch(
|
||||||
}
|
}
|
||||||
if (node.type === 'type') {
|
if (node.type === 'type') {
|
||||||
if (currentIdType !== node.id) {
|
if (currentIdType !== node.id) {
|
||||||
|
filterStat.push('group', 'type');
|
||||||
await enterType(node.id, node.name);
|
await enterType(node.id, node.name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (currentIdType === node.id) {
|
if (currentIdType === node.id) {
|
||||||
|
filterStat = filterStat.filter((item) => {
|
||||||
|
return item !== 'type';
|
||||||
|
});
|
||||||
currentIdType = '';
|
currentIdType = '';
|
||||||
productMode = 'type';
|
productMode = 'type';
|
||||||
expandedTree.pop();
|
expandedTree.pop();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue