1
lzhe
2024-10-23 abc00682c1f32ac8e204da454c74955efd8e8af0
1
已修改1个文件
15 ■■■■ 文件已修改
src/views/home/widgets/index.vue 15 ●●●● 补丁 | 查看 | 原始文档 | 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);
                        }
                    })
                })
            },
            //保存