diff --git a/entry/src/main/ets/application/MailBox.ets b/entry/src/main/ets/application/MailBox.ets index 23032f1030f84f2a6e782c788f685562cc295928..1b086bd97d3ca23aea7ad12664f42dc09d2c238e 100644 --- a/entry/src/main/ets/application/MailBox.ets +++ b/entry/src/main/ets/application/MailBox.ets @@ -27,7 +27,7 @@ struct MailBox { @StorageProp('currentBreakPoint') currentBreakPoint: string = 'md'; @State isFold: boolean = false; @State sideBarWidth: number = 304; - @StorageProp('topRectHeight') topRectHeight: number = 0; //showSideBar + @StorageProp('topRectHeight') topRectHeight: number = 0; @StorageProp('isShowMailSideBar') isShowMailSideBar: boolean = this.currentBreakPoint === 'lg' ? true : false; aboutToAppear(): void { diff --git a/entry/src/main/ets/application/PhotoAlbum.ets b/entry/src/main/ets/application/PhotoAlbum.ets index 103723487f078f817a996339bc7a648d7c76bb3c..8fcefbf42de2cfe17ca93d490bfdde53fb21d256 100644 --- a/entry/src/main/ets/application/PhotoAlbum.ets +++ b/entry/src/main/ets/application/PhotoAlbum.ets @@ -25,7 +25,7 @@ let storage = LocalStorage.getShared(); @Component struct PhotoAlbum { @State sideBarStatus: boolean = true; - @StorageProp ('currentBreakPoint') currentBreakPoint: string = 'sm'; + @StorageProp('currentBreakPoint') currentBreakPoint: string = 'sm'; @StorageProp('currentBreakpoint') curBp: string = CommonConstants.BREAK_POINT_SM; @StorageProp('topRectHeight') topRectHeight: number = 0;