From a3fb576a5d00091efc28d7f1a6a509d5dafd3448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A8=9C?= Date: Mon, 17 Feb 2025 12:07:41 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserHeaderBar/headerCom.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/UserHeaderBar/headerCom.vue b/src/components/UserHeaderBar/headerCom.vue index 9407b24..2f369a4 100644 --- a/src/components/UserHeaderBar/headerCom.vue +++ b/src/components/UserHeaderBar/headerCom.vue @@ -250,9 +250,12 @@ type TypesImg = { }; // 使用类型别名定义 typesImg 对象的类型 -const typesImg: TypesImg = { +const typesImg: TypesImg = window.location.origin.indexOf('localhost') ? { qwen: "/witchaind/src/assets/images/Qwen.png", deepseek: "/witchaind/src/assets/images/deepseek.png", +}: { + qwen: "/src/assets/images/Qwen.png", + deepseek: "/src/assets/images/deepseek.png", }; const ruleForm = ref({ openai_api_key: "", -- Gitee From 86acc8b5478ab9f61700a3b511c50188ae160a4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A8=9C?= Date: Mon, 17 Feb 2025 12:42:24 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserHeaderBar/headerCom.vue | 23 ++++------------------ 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/src/components/UserHeaderBar/headerCom.vue b/src/components/UserHeaderBar/headerCom.vue index 2f369a4..eb326a0 100644 --- a/src/components/UserHeaderBar/headerCom.vue +++ b/src/components/UserHeaderBar/headerCom.vue @@ -93,12 +93,10 @@ :label="item.model_name" :value="item.id" > - + + {{ item.model_name }} @@ -244,19 +242,6 @@ let modelTypes: Ref = ref([ // }, ]); -// 定义一个类型别名来描述 typesImg 对象的结构 -type TypesImg = { - [key: string]: string; // 键是字符串,值也是字符串 -}; - -// 使用类型别名定义 typesImg 对象的类型 -const typesImg: TypesImg = window.location.origin.indexOf('localhost') ? { - qwen: "/witchaind/src/assets/images/Qwen.png", - deepseek: "/witchaind/src/assets/images/deepseek.png", -}: { - qwen: "/src/assets/images/Qwen.png", - deepseek: "/src/assets/images/deepseek.png", -}; const ruleForm = ref({ openai_api_key: "", openai_api_base: "", -- Gitee From 5b928d06b03d210547bea455d9cfb53000bc890a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A8=9C?= Date: Mon, 17 Feb 2025 14:23:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=8D=83=E9=97=AE=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=94=B9=E4=B8=BA=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UserHeaderBar/headerCom.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/UserHeaderBar/headerCom.vue b/src/components/UserHeaderBar/headerCom.vue index eb326a0..474837f 100644 --- a/src/components/UserHeaderBar/headerCom.vue +++ b/src/components/UserHeaderBar/headerCom.vue @@ -95,7 +95,7 @@ > - {{ item.model_name }} -- Gitee