diff --git a/frontend/auto-imports.d.ts b/frontend/auto-imports.d.ts index eab6be6..d0c217f 100644 --- a/frontend/auto-imports.d.ts +++ b/frontend/auto-imports.d.ts @@ -3,6 +3,7 @@ // @ts-nocheck // noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import +// biome-ignore lint: disable export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] @@ -70,6 +71,6 @@ declare global { // for type re-export declare global { // @ts-ignore - export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' + export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') } diff --git a/frontend/components.d.ts b/frontend/components.d.ts index f3875bb..3501b3f 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -26,6 +26,7 @@ declare module 'vue' { ChatMessage: typeof import('./src/components/chat/ChatMessage.vue')['default'] ChatMsgList: typeof import('./src/components/chat/ChatMsgList.vue')['default'] ChatNav: typeof import('./src/components/localchat/ChatNav.vue')['default'] + ChatUserInfo: typeof import('./src/components/chat/chatUserInfo.vue')['default'] ChatUserList: typeof import('./src/components/chat/ChatUserList.vue')['default'] ChatUserSetting: typeof import('./src/components/chat/ChatUserSetting.vue')['default'] ChatWorkList: typeof import('./src/components/chat/ChatWorkList.vue')['default'] diff --git a/frontend/src/components/chat/Chat.vue b/frontend/src/components/chat/Chat.vue index 4f8eab5..058407d 100644 --- a/frontend/src/components/chat/Chat.vue +++ b/frontend/src/components/chat/Chat.vue @@ -1,115 +1,144 @@ \ No newline at end of file + diff --git a/frontend/src/components/chat/ChatBox.vue b/frontend/src/components/chat/ChatBox.vue index 4d9fc64..318e13c 100644 --- a/frontend/src/components/chat/ChatBox.vue +++ b/frontend/src/components/chat/ChatBox.vue @@ -1,173 +1,204 @@ \ No newline at end of file + .no-message-container { + height: 100%; + margin: 120px auto; + text-align: center; + justify-content: center; + } + diff --git a/frontend/src/components/chat/ChatMenu.vue b/frontend/src/components/chat/ChatMenu.vue index aa86def..2439900 100644 --- a/frontend/src/components/chat/ChatMenu.vue +++ b/frontend/src/components/chat/ChatMenu.vue @@ -3,6 +3,10 @@ import {ref} from "vue"; import { useChatStore } from "@/stores/chat"; import {Setting as SettingIcon} from "@element-plus/icons-vue"; const store = useChatStore() +const getOnline = () => { + store.getOnlineUsers() + store.setCurrentNavId(1) +}