vue数据改变ui不刷新解决办法

 onBlurForFh(){
      let bf = this.returnModel.returnamtStr.replace(/[,]/g,"");
      this.returnModel.returnamt = parseFloat(bf).toFixed(2);
      this.returnModel.returnamtStr = this.abs(parseFloat(bf));
      this.$forceUpdate();//添加强制刷新
    },

 

posted @ 2022-10-27 16:31  花田007  阅读(69)  评论(0编辑  收藏  举报