diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 3d33306..522afce 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -57,8 +57,6 @@ declare module 'vue' { ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCol: typeof import('element-plus/es')['ElCol'] - ElCollapse: typeof import('element-plus/es')['ElCollapse'] - ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem'] ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDialog: typeof import('element-plus/es')['ElDialog'] diff --git a/frontend/src/components/chat/Chat.vue b/frontend/src/components/chat/Chat.vue index 1492dd7..5af16a2 100644 --- a/frontend/src/components/chat/Chat.vue +++ b/frontend/src/components/chat/Chat.vue @@ -10,7 +10,7 @@ // 将用户列表转换为 el-transfer 组件所需的数据格式 const generateData = () => { - return store.allUserList.map((user) => ({ + return store.allUserList.map((user: any) => ({ key: user.id, label: user.nickname, avatar: user.avatar, // 添加头像数据 diff --git a/frontend/src/components/chat/ChatBox.vue b/frontend/src/components/chat/ChatBox.vue index 563387f..d9f6ffe 100644 --- a/frontend/src/components/chat/ChatBox.vue +++ b/frontend/src/components/chat/ChatBox.vue @@ -1,6 +1,6 @@