diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 1519afa2b34d7aab11fa8221dfa49974c63569a5..5a743ba80d7f2d658e00363b4d2a8a67dd46f56d 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -47,7 +47,7 @@ struct Index { }) .backgroundColor($r('sys.color.comp_background_primary')) } - }, (item: SampleUnitItem, index: number) => index.toString()) + }, (item: string) => item); } .margin({ top: px2vp(this.topRectHeight) }) .backgroundColor($r('sys.color.background_secondary'))