From 79f0dbe2bc5588c617ddfd82ac027977c764f5fe Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 15 一月 2025 16:29:21 +0800 Subject: [PATCH] 资产管理 --- src/components/RightToolbar/index.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue index a56bab7..02213b4 100644 --- a/src/components/RightToolbar/index.vue +++ b/src/components/RightToolbar/index.vue @@ -156,11 +156,15 @@ }) }, delColumn(id, index) { - deleteDynamicColumnById(id).then(res => { - this.$message.success("鍒犻櫎鎴愬姛") - this.getDyColumn(); - this.$emit('refreshHeader'); - }) + if(id) { + deleteDynamicColumnById(id).then(res => { + this.$message.success("鍒犻櫎鎴愬姛") + this.getDyColumn(); + this.$emit('refreshHeader'); + }) + }else { + this.dynamicColumnList.splice(index,1) + } }, dynamicColumnClose() { this.showDynamicColumn = false -- Gitblit v1.8.0