vue3 函数式组件调试报警 make sure to add a “displayName” to the component 2022-12-07 13:38:42 浏览数 (2) 开发调试报警 If you were passing a functional component, make sure to add a “displayName” to the component. 解决代码语言:javascript复制const component = () => { return h( MyComponent ) } component.displayName = 'MyComponentWrapper' add component 开发 调试 0 人点赞 上一篇:分享雷军22年前编写的代码