src/views/home/widgets/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/views/home/widgets/index.vue
@@ -278,10 +278,17 @@ }, //隐藏组件 remove(item){ var newCopmsList = this.grid.copmsList newCopmsList.forEach((obj, index) => { var newObj = obj.filter(o=>o!=item) newCopmsList[index] = newObj; this.$nextTick(()=> { var newCopmsList = this.grid.copmsList; newCopmsList.forEach((obj, index) => { var newObj = obj.filter(o=>o!=item) newCopmsList[index] = newObj; }) this.grid.data.forEach((item1,index1)=> { if(item1.cardKey == item) { this.grid.data.splice(index1,1); } }) }) }, //保存