当项目中存在多层组件相互嵌套 组件存在严重缓存时
this.$nextTick(() => { ..... });
不管用
this.$forceUpdate();
不管用
只能通过深拷贝浅拷贝数据源原理 上来操作
this.tableData = JSON.parse(JSON.stringify(this.tableData))
问题解决
当项目中存在多层组件相互嵌套 组件存在严重缓存时
this.$nextTick(() => { ..... });
不管用
this.$forceUpdate();
不管用
只能通过深拷贝浅拷贝数据源原理 上来操作
this.tableData = JSON.parse(JSON.stringify(this.tableData))
问题解决