controller 的方法名字必须加上async吗? #4349
-
Describe the problem(描述问题)midway 在controller中如果方法名字不添加async,使用@query()获取到的参数是不对,加上async就可以的,请问前辈们这是正常的还是bug 必须保证都加async吗? Midway Versions(Midway 版本)
✓ @midwayjs/faas-typings(not installed)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
如果要提取入参就应该加上 async |
Beta Was this translation helpful? Give feedback.
-
|
必须 |
Beta Was this translation helpful? Give feedback.
如果要提取入参就应该加上 async