bug fixed
This commit is contained in:
parent
ac8acc2b5c
commit
43f937e74c
@ -3,7 +3,8 @@ import {
|
|||||||
OnInit,
|
OnInit,
|
||||||
ViewChild,
|
ViewChild,
|
||||||
ViewChildren,
|
ViewChildren,
|
||||||
QueryList
|
QueryList,
|
||||||
|
OnDestroy
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Observable, combineLatest, Subscription } from 'rxjs';
|
import { Observable, combineLatest, Subscription } from 'rxjs';
|
||||||
@ -44,7 +45,7 @@ import { KEY_VER_INFO } from '@app/types/ver-info.type';
|
|||||||
styleUrls: ['./group.component.scss'],
|
styleUrls: ['./group.component.scss'],
|
||||||
animations: ucapAnimations
|
animations: ucapAnimations
|
||||||
})
|
})
|
||||||
export class GroupComponent implements OnInit {
|
export class GroupComponent implements OnInit, OnDestroy {
|
||||||
@ViewChild('groupExpansionPanel', { static: true })
|
@ViewChild('groupExpansionPanel', { static: true })
|
||||||
groupExpansionPanel: GroupExpansionPanelComponent;
|
groupExpansionPanel: GroupExpansionPanelComponent;
|
||||||
|
|
||||||
@ -134,6 +135,12 @@ export class GroupComponent implements OnInit {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
if (!!this.loginResSubscription) {
|
||||||
|
this.loginResSubscription.unsubscribe();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async onClickGroupMenu(menuType: string) {
|
async onClickGroupMenu(menuType: string) {
|
||||||
this.logger.debug('menuType', menuType);
|
this.logger.debug('menuType', menuType);
|
||||||
switch (menuType) {
|
switch (menuType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user