diff --git a/src/lib/components/chat/Header.svelte b/src/lib/components/chat/Header.svelte index 5d99106..c4a70bf 100644 --- a/src/lib/components/chat/Header.svelte +++ b/src/lib/components/chat/Header.svelte @@ -5,11 +5,15 @@ import { showSidebar, } from '$lib/stores'; + import { t } from 'i18next'; + // 判断是否为移动设备 + const isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); let list = [ { title: '工作', - bg: '/img/work.png', + bg: `/img${isMobile?'/phone':''}/work.png`, id: '3', + title_color:'#40b0bb', buttons: [ { label: '工作总结', @@ -34,8 +38,9 @@ }, { title: '知识库', - bg: '/img/knowledge.png', + bg: `/img${isMobile?'/phone':''}/knowledge.png`, id: '2', + title_color:'#4ea2eb', buttons: [ { label: '检索知识库', @@ -52,8 +57,9 @@ }, { title: '使用记录', - bg: '/img/record.png', + bg:`/img${isMobile?'/phone':''}/record.png`, id: '1', + title_color:'#696ed0', buttons: [ { label: '历史消息', @@ -70,7 +76,6 @@ } ]; -
需要我帮您做点什么?
{itemP.label}
{/each}
+
+
+
+
+
+ {/if}
{#if $temporaryChatEnabled}