2***@qq.com
2***@qq.com
  • 发布:2020-12-29 10:02
  • 更新:2021-03-23 09:14
  • 阅读:3241

UNIAPP项目 使用$forceUpdate(),刷新存在延时,且挺长

分类:uni-app

FN_TbSelectRow(e) {
if (_this.WashingFormula.currRow > -1) {
_this.WashingFormula.DataSource[0][_this.WashingFormula.currRow].Selected = false;
if (_this.WashingFormula.currRow != e) {
_this.WashingFormula.DataSource[0][e].Selected = true;
_this.WashingFormula.currRow = e;
}
} else {
_this.WashingFormula.DataSource[0][e].Selected = true;
_this.WashingFormula.currRow = e;
}

        _this.$forceUpdate();  

    },
2020-12-29 10:02 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com (作者) - 路人家

View中使用了v-for. 强制渲染延时长

2***@qq.com

2***@qq.com (作者) - 路人家

没有管理员回复吗~

是不是因为我的Table的列太多了。现在是10列。造成的 _this.$forceUpdate(); 时间过长

8***@qq.com

8***@qq.com

现在解决了吗?

该问题目前已经被锁定, 无法添加新回复