From b21a7c0498f03e34ca24f7be95a5086a5d291e4a Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Wed, 28 Aug 2024 19:17:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=90=8E=E7=BC=80=E5=A4=A7=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/utils/utils.ts | 2 +- ui/src/views/dataset/component/BaseForm.vue | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/src/utils/utils.ts b/ui/src/utils/utils.ts index 698a63625..9b30135fb 100644 --- a/ui/src/utils/utils.ts +++ b/ui/src/utils/utils.ts @@ -45,7 +45,7 @@ const typeList: any = { export function getImgUrl(name: string) { const list = Object.values(typeList).flat() - const type = list.includes(fileType(name)) ? fileType(name) : 'unknow' + const type = list.includes(fileType(name.toLowerCase())) ? fileType(name.toLowerCase()) : 'unknow' return new URL(`../assets/${type}-icon.svg`, import.meta.url).href } // 是否是白名单后缀 diff --git a/ui/src/views/dataset/component/BaseForm.vue b/ui/src/views/dataset/component/BaseForm.vue index 6c689c3fc..43a00b3a4 100644 --- a/ui/src/views/dataset/component/BaseForm.vue +++ b/ui/src/views/dataset/component/BaseForm.vue @@ -50,10 +50,12 @@
{{ item.name }} - 公用 + 公用
-
+
{{ item.name }} {{