It's not a recommended way to export struct with @Entry decorator, which may cau

176 阅读1分钟

image.png

出现警告, 大致意思是,不建议使用export导出一个被@Entry装饰的struct

想一想,确实合理,被@Entry修饰的表示一个页面的入口,所以不需要export,export的应该是组件。