From 8218a4ba81ce32be2a62cab2d7a7f1736804ae7a Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Thu, 9 Jun 2022 18:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=81=8A=E5=A4=A9=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/modules/chat/components/index.vue | 135 +++++++++++++++-- src/modules/chat/components/message.vue | 187 ++++++++++++++++++++++-- src/modules/chat/components/session.vue | 99 +++++++------ src/modules/chat/hooks/index.ts | 26 +++- src/modules/chat/service/message.ts | 47 ++++++ src/modules/chat/service/session.ts | 43 ++++++ yarn.lock | 8 +- 8 files changed, 471 insertions(+), 76 deletions(-) create mode 100644 src/modules/chat/service/message.ts create mode 100644 src/modules/chat/service/session.ts diff --git a/package.json b/package.json index bdc6feb..9f3df7d 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "lint:eslint": "eslint \"{src,mock}/**/*.{vue,ts,tsx}\" --fix" }, "dependencies": { - "@cool-vue/crud": "^5.0.10", + "@cool-vue/crud": "^5.0.11", "@element-plus/icons-vue": "^1.1.3", "@vueuse/core": "^8.2.5", "axios": "^0.27.2", diff --git a/src/modules/chat/components/index.vue b/src/modules/chat/components/index.vue index f9e8492..be4ad5a 100644 --- a/src/modules/chat/components/index.vue +++ b/src/modules/chat/components/index.vue @@ -18,18 +18,29 @@ append-to-body :controls="['slot-expand', 'cl-flex1', 'fullscreen', 'close']" > -