zhangbo1_wd

修改底导icon 磁盘缓存

@@ -7,7 +7,7 @@ import { MinePageComponent } from 'wdComponent/src/main/ets/components/page/Mine @@ -7,7 +7,7 @@ import { MinePageComponent } from 'wdComponent/src/main/ets/components/page/Mine
7 import { CompUtils, TopNavigationComponent, TopNavigationComponentNew } from 'wdComponent/Index'; 7 import { CompUtils, TopNavigationComponent, TopNavigationComponentNew } from 'wdComponent/Index';
8 import { VideoChannelPage } from './VideoChannelPage'; 8 import { VideoChannelPage } from './VideoChannelPage';
9 import ChannelViewModel from 'wdComponent/src/main/ets/viewmodel/ChannelViewModel'; 9 import ChannelViewModel from 'wdComponent/src/main/ets/viewmodel/ChannelViewModel';
10 -import { ImageKnifeComponent, ImageKnifeOption, NONE } from '@ohos/imageknife'; 10 +import { ALL, ImageKnifeComponent, ImageKnifeOption, NONE } from '@ohos/imageknife';
11 11
12 const TAG = 'BottomNavigationComponent'; 12 const TAG = 'BottomNavigationComponent';
13 PersistentStorage.persistProp('channelIds', ''); 13 PersistentStorage.persistProp('channelIds', '');
@@ -188,8 +188,8 @@ export struct BottomNavigationComponent { @@ -188,8 +188,8 @@ export struct BottomNavigationComponent {
188 errorholderSrc: defaultIcon, 188 errorholderSrc: defaultIcon,
189 // 是否开启一级内存缓存 189 // 是否开启一级内存缓存
190 isCacheable: true, 190 isCacheable: true,
191 - // 磁盘缓存none  
192 - strategy: new NONE() 191 + // 磁盘缓存
  192 + strategy: new ALL()
193 }; 193 };
194 return imageKnifeOption 194 return imageKnifeOption
195 } 195 }
@@ -263,6 +263,7 @@ export struct BottomNavigationComponent { @@ -263,6 +263,7 @@ export struct BottomNavigationComponent {
263 } 263 }
264 264
265 onBottomNavigationDataUpdated() { 265 onBottomNavigationDataUpdated() {
  266 + Logger.error('yyyy','onBottomNavigationDataUpdated '+JSON.stringify(this.bottomNavList))
266 // Logger.info(TAG, `onBottomNavigationDataUpdated currentNavIndex: ${this.currentNavIndex},length:${this.bottomNavItemList.length}`); 267 // Logger.info(TAG, `onBottomNavigationDataUpdated currentNavIndex: ${this.currentNavIndex},length:${this.bottomNavItemList.length}`);
267 } 268 }
268 269