From 98ba0c0db8338d9123bf7c93a5d6613c48d11263 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 19 Dec 2023 17:57:11 +0800 Subject: [PATCH] feat: --- ui/src/views/dataset/component/BaseForm.vue | 5 +++-- ui/src/views/log/component/ChatRecordDrawer.vue | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/src/views/dataset/component/BaseForm.vue b/ui/src/views/dataset/component/BaseForm.vue index 5b2af8445..e0b8ffaf8 100644 --- a/ui/src/views/dataset/component/BaseForm.vue +++ b/ui/src/views/dataset/component/BaseForm.vue @@ -13,6 +13,7 @@ placeholder="请输入知识库名称" maxlength="64" show-word-limit + @blur="form.name = form.name.trim()" /> @@ -23,6 +24,7 @@ maxlength="500" show-word-limit :autosize="{ minRows: 3 }" + @blur="form.desc = form.desc.trim()" /> @@ -41,8 +43,7 @@ const { dataset } = useStore() const baseInfo = computed(() => dataset.baseInfo) const form = ref({ name: '', - desc: '', - + desc: '' }) const rules = reactive({ diff --git a/ui/src/views/log/component/ChatRecordDrawer.vue b/ui/src/views/log/component/ChatRecordDrawer.vue index 3109aa637..2d9172506 100644 --- a/ui/src/views/log/component/ChatRecordDrawer.vue +++ b/ui/src/views/log/component/ChatRecordDrawer.vue @@ -1,5 +1,5 @@