From e3f2346d66e7ffb727a589a1b65d250f154535b5 Mon Sep 17 00:00:00 2001
From: Phoenix <64720302+Concur-max@users.noreply.github.com>
Date: Tue, 27 May 2025 11:20:55 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E5=92=8C=E7=BB=84=E4=BB=B6=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 在Editor.vue中,优化成员列表的渲染逻辑,确保在特定条件下显示'所有人'选项
- 在FileMessage.vue中,修改上传进度显示条件,避免在未开始上传时显示进度圆环
- 在uploads.ts中,简化重试上传逻辑,移除不必要的暂停状态检查
- 在PanelContent.vue中,添加对重试操作的支持,确保能够针对特定项目进行重试
---
src/components/editor/Editor.vue | 9 +++---
src/components/talk/message/FileMessage.vue | 2 +-
src/store/modules/uploads.ts | 32 ++++++++-----------
src/utils/auth.js | 2 +-
.../message/inner/panel/PanelContent.vue | 28 +++++++++++++---
vite.config.ts | 2 +-
6 files changed, 43 insertions(+), 32 deletions(-)
diff --git a/src/components/editor/Editor.vue b/src/components/editor/Editor.vue
index 6750bae..4a5db01 100644
--- a/src/components/editor/Editor.vue
+++ b/src/components/editor/Editor.vue
@@ -52,7 +52,6 @@ import { ServeUploadImage } from '@/api/upload'
import { uploadImg } from '@/api/upload'
// 引入事件总线钩子
import { useEventBus } from '@/hooks'
-
// 注册Quill编辑器的自定义格式
Quill.register('formats/emoji', EmojiBlot) // 注册表情格式
Quill.register('formats/quote', QuoteBlot) // 注册引用格式
@@ -147,12 +146,12 @@ const editorOption = {
if (!props.members.length) {
return renderList([])
}
-
let list = [
- { id: 0, nickname: '所有人', avatar: defAvatar, value: '所有人' },
...props.members
- ]
-
+ ] as any
+if((dialogueStore.groupInfo as any).is_manager){
+ list.unshift({ id: 0, nickname: '所有人', avatar: defAvatar, value: '所有人' })
+}
const items = list.filter(
(item: any) => item.nickname.toLowerCase().indexOf(searchTerm) !== -1
)
diff --git a/src/components/talk/message/FileMessage.vue b/src/components/talk/message/FileMessage.vue
index 7b41ad7..6b9c8b7 100644
--- a/src/components/talk/message/FileMessage.vue
+++ b/src/components/talk/message/FileMessage.vue
@@ -122,7 +122,7 @@ const handleDownload = () => {
-