From 28af539b44f64ea9637f3e98a75b7e156b6b03b4 Mon Sep 17 00:00:00 2001 From: lipenghui Date: Wed, 24 Jan 2024 17:24:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9B=BE=E5=83=8F=E5=88=86=E6=9E=90?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=9B=BE=E7=89=87=E5=A2=9E=E5=8A=A0=E5=88=A0?= =?UTF-8?q?=E9=99=A4=EF=BC=9Bmqtt=E6=8E=A5=E6=94=B6=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BD=93=E5=89=8D=E4=BC=9A=E8=AF=9Did?= =?UTF-8?q?=E6=8B=A6=E6=88=AA=E5=88=A4=E6=96=AD=EF=BC=9B=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E8=BF=9B=E8=A1=8C=E4=B8=AD=E6=97=B6=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=8B=A6=E6=88=AA=E7=9A=84=E6=96=B9=E5=BC=8F=EF=BC=9B?= =?UTF-8?q?=E9=9C=80=E4=BF=AE=E6=94=B9modelType=E6=9E=9A=E4=B8=BE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=EF=BC=9B=E8=A7=92=E8=89=B2=E5=88=A0=E9=99=A4=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B=E5=88=87=E6=8D=A2=E4=B8=8B=E6=8B=89=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppConversationDefault/index.vue | 2 +- src/components/AppModelSelect/index.vue | 3 + src/components/AppTextarea/index.vue | 152 +++++++++++++++++- src/enums/messageEnum.ts | 8 +- src/hooks/useMqtt.ts | 13 +- src/layout/AppMenu/index.vue | 18 ++- src/utils/is.ts | 1 + src/views/conversation/index.vue | 15 +- src/views/repository/index.vue | 13 +- src/views/role/index.vue | 22 +-- src/views/textToImage/index.vue | 13 +- src/views/visualAnalysis/index.vue | 139 +++++----------- types/mqtt.d.ts | 9 ++ 13 files changed, 238 insertions(+), 170 deletions(-) create mode 100644 types/mqtt.d.ts diff --git a/src/components/AppConversationDefault/index.vue b/src/components/AppConversationDefault/index.vue index 3cb1a5a..d7b056a 100644 --- a/src/components/AppConversationDefault/index.vue +++ b/src/components/AppConversationDefault/index.vue @@ -14,7 +14,7 @@ const props = withDefaults(defineProps(), { isHot: false, height: '100%', leadData: () => ({ - title: '你好,我是青鸟语言大模型-同聪~', + title: '你好,青鸟AI助手-同聪~', subTitles: [ '我可以自由的跟你对话~陪你聊天~帮你想方案~答疑解惑。', '你可以试着问我', diff --git a/src/components/AppModelSelect/index.vue b/src/components/AppModelSelect/index.vue index 7646a82..6d48ae0 100644 --- a/src/components/AppModelSelect/index.vue +++ b/src/components/AppModelSelect/index.vue @@ -67,4 +67,7 @@ function handelChange(index: number, item: ModelSelect) { height: 18px; } } +:deep(.ant-dropdown-menu-item) { + text-align: center; +} diff --git a/src/components/AppTextarea/index.vue b/src/components/AppTextarea/index.vue index 952e771..852c90a 100644 --- a/src/components/AppTextarea/index.vue +++ b/src/components/AppTextarea/index.vue @@ -1,10 +1,13 @@