From afa86464d9e31bc6fc964107a95e2c8e0f59e0f6 Mon Sep 17 00:00:00 2001 From: hyx Date: Mon, 9 Oct 2023 13:46:28 +0800 Subject: [PATCH] =?UTF-8?q?CN-1273=20=E8=87=AA=E5=AE=9A=E4=B9=89library?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0tag=E9=A2=9C=E8=89=B2=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/setting/KnowledgeBaseForm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/setting/KnowledgeBaseForm.vue b/src/views/setting/KnowledgeBaseForm.vue index cd9b03a1..a7c19899 100644 --- a/src/views/setting/KnowledgeBaseForm.vue +++ b/src/views/setting/KnowledgeBaseForm.vue @@ -1217,9 +1217,9 @@ export default { this.editObject = response.data.data if (response.data.data.color) { const curColorObj = knowledgeBaseColor.find(item => item.value === response.data.data.color) - this.editObject.color = curColorObj.value - this.editObject.colorName = curColorObj.name - this.editObject.colorLabel = curColorObj.label + this.editObject.color = curColorObj ? curColorObj.value : knowledgeBaseColor[0].value + this.editObject.colorName = curColorObj ? curColorObj.name : knowledgeBaseColor[0].name + this.editObject.colorLabel = curColorObj ? curColorObj.label : knowledgeBaseColor[0].label } else { this.editObject.color = knowledgeBaseColor[0].value this.editObject.colorName = knowledgeBaseColor[0].name