Method "computed" has type "object" in the component definition. Did you reference the function cor

Method “computed” has type “object” in the component definition. Did you reference the function correctly?
意思是:
方法“computed”在组件定义中具有类型“object”。你正确地引用了函数吗?
出现这样的问题就是 将methods方法报裹住了computed

computed: {
        carId() {
            if(this.addForm.goods_cat.length===3){
                return this.addForm.goods_cat[2]
                console.log( this.addForm.goods_cat);
                
            }
            return null
        }
发布了24 篇原创文章 · 获赞 2 · 访问量 9186

猜你喜欢

转载自blog.csdn.net/sunmeng_sunmeng/article/details/102926885