王士厅

fix: 兴趣卡关闭添加提示,关闭后列表删除数据

@@ -25,7 +25,7 @@ export struct ZhSingleColumn09 { @@ -25,7 +25,7 @@ export struct ZhSingleColumn09 {
25 @State compDTO: CompDTO = {} as CompDTO 25 @State compDTO: CompDTO = {} as CompDTO
26 @State activeIndexs: Array<number> = [] 26 @State activeIndexs: Array<number> = []
27 @State operDataList: ContentDTO[] = this.compDTO?.operDataList || [] 27 @State operDataList: ContentDTO[] = this.compDTO?.operDataList || []
28 - @State selfClosed: Boolean = false; 28 + @StorageLink('selfClosed') selfClosed: boolean = false
29 @State loadImg: boolean = false; 29 @State loadImg: boolean = false;
30 @State compIndex: number = 0; 30 @State compIndex: number = 0;
31 31
@@ -18,6 +18,7 @@ const TAG = 'MainPage'; @@ -18,6 +18,7 @@ const TAG = 'MainPage';
18 18
19 PersistentStorage.persistProp('GestureLoadStrategy', 0); // 点播视频手势动画0为用户首次进入视频点播,1为用户已进入视频点播 19 PersistentStorage.persistProp('GestureLoadStrategy', 0); // 点播视频手势动画0为用户首次进入视频点播,1为用户已进入视频点播
20 PersistentStorage.persistProp('clickedIds', []); // 频道稿件已读存放稿件ID结合用户频道列表已读置灰回显 20 PersistentStorage.persistProp('clickedIds', []); // 频道稿件已读存放稿件ID结合用户频道列表已读置灰回显
  21 +PersistentStorage.persistProp('selfClosed', false); // 新闻频道推荐兴趣卡,默认显示
21 22
22 @Entry 23 @Entry
23 @Component 24 @Component