From d20b518f5bcc3df9f612f64fbcf98b7b4804236c Mon Sep 17 00:00:00 2001 From: HoshinoSuzumi Date: Fri, 29 Mar 2024 18:11:55 +0800 Subject: [PATCH] feat: Chat UI done --- components/Icon/MessageResponding.vue | 52 ++++++++ components/aigc/chat/Message.vue | 27 +++- composables/useHistory.ts | 11 +- composables/useIdGenerator.ts | 18 +++ pages/aigc/chat/index.vue | 171 +++++++++++++++----------- 5 files changed, 202 insertions(+), 77 deletions(-) create mode 100644 components/Icon/MessageResponding.vue create mode 100644 composables/useIdGenerator.ts diff --git a/components/Icon/MessageResponding.vue b/components/Icon/MessageResponding.vue new file mode 100644 index 0000000..798a680 --- /dev/null +++ b/components/Icon/MessageResponding.vue @@ -0,0 +1,52 @@ + \ No newline at end of file diff --git a/components/aigc/chat/Message.vue b/components/aigc/chat/Message.vue index 2441eae..88790f8 100644 --- a/components/aigc/chat/Message.vue +++ b/components/aigc/chat/Message.vue @@ -1,6 +1,7 @@ @@ -140,12 +154,12 @@ onMounted(() => { @@ -170,13 +184,15 @@ onMounted(() => {
{{ getSessionCopyById(currentSessionId!)?.subject || '新对话' }}
-
+
- + + +
{
+ \ No newline at end of file