fuliqi
2024-12-25 301532b5c1cad2c1d45080bfef86579b20486bf5
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