From cb46f393e0858051e2cef9701edde69d77fe05ed Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Wed, 9 Oct 2024 17:17:12 +0800 Subject: [PATCH] fixed: Fixed An issue where adding a tag to asset does not work --- .../Table/TableFormatters/LabelsFormatter.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/components/Table/TableFormatters/LabelsFormatter.vue b/src/components/Table/TableFormatters/LabelsFormatter.vue index f3067a0bc..cb9cf4b48 100644 --- a/src/components/Table/TableFormatters/LabelsFormatter.vue +++ b/src/components/Table/TableFormatters/LabelsFormatter.vue @@ -131,6 +131,16 @@ export default { } }, computed: {}, + watch: { + cellValue: { + handler(newValue) { + if (newValue) { + this.initial = this.formatterArgs.getLabels(this.cellValue) + this.iLabels = [...this.initial] + } + } + } + }, mounted() { this.initial = this.formatterArgs.getLabels(this.cellValue) this.iLabels = [...this.initial]