当我使用带有组件和中间件的装饰器时,我不太确定为什么我收到此错误消息:
检查后,错误如下:
TS2345: Argument of type '{ components: { Test: typeof Nav; }; middleware: string[]; }' is not assignable to parameter of type 'VueClass'.
Object literal may only specify known properties, but 'components' does not exist in type 'VueClass'. Did you mean to write 'component'?
没有中间件,@ Component装饰器不再是fusses:
知道为什么会这样吗?