diff --git a/ohos_rs_example/entry/src/main/ets/pages/Tsfn.ets b/ohos_rs_example/entry/src/main/ets/pages/Tsfn.ets index d24fc3f..9730286 100644 --- a/ohos_rs_example/entry/src/main/ets/pages/Tsfn.ets +++ b/ohos_rs_example/entry/src/main/ets/pages/Tsfn.ets @@ -11,10 +11,10 @@ struct Tsfn { Text(this.message) .fontSize(50) .fontWeight(FontWeight.Bold) - + Button('Run TSFN').onClick(() => { - tsfn.testTsFn((args: number[]) => { - this.message = args.toString(); + tsfn.testTsFn((...args: number[]) => { + this.message = `${args}`; }) }) }