未验证 提交 10276327 编写于 作者: O openharmony_ci 提交者: Gitee

!24162 【master】一多akrts整改0906

Merge pull request !24162 from songqq0825/master
......@@ -230,9 +230,15 @@ export class BreakpointSystem {
}
public unregister() :void{
this.smListener.off("change", this.isBreakpointSM)
this.mdListener.off("change", this.isBreakpointMD)
this.lgListener.off("change", this.isBreakpointLG)
if(this.smListener){
this.smListener.off("change", this.isBreakpointSM)
}
if(this.mdListener){
this.mdListener.off("change", this.isBreakpointMD)
}
if(this.lgListener){
this.lgListener.off("change", this.isBreakpointLG)
}
}
}
......
......@@ -60,6 +60,12 @@ struct Index {
```
```typescript
//核心代码 SettingList.ets
import { MainItem } from '../components/MainItem'
import { ItemGroup } from '../components/ItemGroup'
import { SearchBox } from '../components/SearchBox'
import { MoreConnectionsItem } from '../moreconnections/MoreConnectionsItem'
import { WlanSettingItem } from '../wlan/WlanSettingItem'
class ItemObj {
title?: Resource
tag?: string
......@@ -114,13 +120,7 @@ let aboutTab:ItemObj={
title: $r('app.string.aboutTab'),
icon: $r('app.media.aboutDevice'),
}
import { MainItem } from '../components/MainItem'
import { ItemGroup } from '../components/ItemGroup'
import { SearchBox } from '../components/SearchBox'
import { MoreConnectionsItem } from '../moreconnections/MoreConnectionsItem'
import { WlanSettingItem } from '../wlan/WlanSettingItem'
@Component
export struct SettingList {
@Builder
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册