在练习官网@Observed装饰器和@ObjectLink装饰器案例时,遇到了报错:
错误提示:
The '@ObjectLink' decorated attribute 'article' must be an '@Observed' decorated class or a union of '@Observed' decorated class and undefined or null, or both.
解决方案:把 Article类引入到子组件中
在练习官网@Observed装饰器和@ObjectLink装饰器案例时,遇到了报错:
错误提示:
The '@ObjectLink' decorated attribute 'article' must be an '@Observed' decorated class or a union of '@Observed' decorated class and undefined or null, or both.
解决方案:把 Article类引入到子组件中