接口返回的模型中没有包含所需的字段,而第一次使用时需要注册一番

 this.$set(this.obj, 'c', '000'); //起作用 

使用时增加个判断

    if(tempObj.IsShowFact == undefined){
          this.$set(tempObj, 'IsShowFact', true); //起作用
    }
    tempObj.IsShowFact = isShow;

参考链接:https://blog.csdn.net/u013558749/article/details/80882033

相关文章:

  • 2021-06-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-11-22
  • 2022-12-23
  • 2021-10-13
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案