Vue2 Vuter 智能感知失效问题的解决方案


当我们在 SFC组件中添加

computed 成员时,    
 imageData:()=> {
      return xxxx
 },

 vuter能正常感知以上代码

    imageData() {
      return this.weave?.imageData
    },

而这以上这种是无法识别的,它会导致整个组件的智能感知崩溃(除了 props 外)

原因是上游的 ts 不支持 vue2 中的 

解决办法也很简单,为 计算属性 声明 返回类型 即可

/*returns {any}*/    
imageData() {
      return this.weave?.imageData
    },