diff --git a/src/components/table/setting/KnowledgeBaseTableForRow.vue b/src/components/table/setting/KnowledgeBaseTableForRow.vue index 2bada590..7662212c 100644 --- a/src/components/table/setting/KnowledgeBaseTableForRow.vue +++ b/src/components/table/setting/KnowledgeBaseTableForRow.vue @@ -250,15 +250,17 @@ export default { } }, colorText () { + const vm = this return function (color) { - const t = this.knowledgeBaseColor.find(t => t.value === color) - return t ? t.label : this.knowledgeBaseColor[0].label + const t = vm.knowledgeBaseColor.find(t => t.value === color) + return t ? t.label : vm.knowledgeBaseColor[0].label } }, colorName () { + const vm = this return function (color) { - const t = this.knowledgeBaseColor.find(t => t.value === color) - return t ? t.name : this.knowledgeBaseColor[0].name + const t = vm.knowledgeBaseColor.find(t => t.value === color) + return t ? t.name : vm.knowledgeBaseColor[0].name } } } diff --git a/src/components/table/setting/knowledgeBaseTableForCard.vue b/src/components/table/setting/knowledgeBaseTableForCard.vue index eda7e2d0..47d26327 100644 --- a/src/components/table/setting/knowledgeBaseTableForCard.vue +++ b/src/components/table/setting/knowledgeBaseTableForCard.vue @@ -189,7 +189,7 @@