Closed lonelyion closed 3 years ago
保存平台和直播间号,方便下次使用
再出bug我海离两个字倒着写
我觉得问题应该是不会有了但是valueChanges.subscribe属于订阅->需要回收,否则有潜在的内存溢出
valueChanges.subscribe
因为是在constructor里的逻辑所以可以提取出成员xxxxsubscription = xxx.subscribe(...)然后在ngOnDestroy内unsubscribe
xxxxsubscription = xxx.subscribe(...)
ngOnDestroy
保存平台和直播间号,方便下次使用
再出bug我海离两个字倒着写