Skip to content

Commit

Permalink
fix: tsfn回调参数错误
Browse files Browse the repository at this point in the history
  • Loading branch information
richerfu committed Jan 3, 2024
1 parent a344159 commit d60e0da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ohos_rs_example/entry/src/main/ets/pages/Tsfn.ets
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
})
})
}
Expand Down

0 comments on commit d60e0da

Please sign in to comment.