JeekStuido
JeekStuido
  • 发布:2025-06-19 21:49
  • 更新:2025-06-19 21:49
  • 阅读:12

Invalid prop: type check failed for prop "Msg". Expected Msg, got Null

分类:uni-app x

使用uniappx编程时,在安卓端,我做了一个自定义组件,里面要引入一个自定义类Msg

const props = defineProps({  
        msg: {  
            type: Msg,  
            default: () : Msg => new Msg()  
        }  
})

ios没有问题
android会报这个错误(告警),会造成程序假死一下,但是不会影响具体功能,我应该如何优化它呢?

2025-06-19 21:49 负责人:无 分享
已邀请:

要回复问题请先登录注册