# 仿微信聊天软件 **Repository Path**: guzipi/imitation-wechat-software ## Basic Information - **Project Name**: 仿微信聊天软件 - **Description**: 前些时间,项目上需要用到websocket,为了熟悉一下相关技术,决定开发一个仿微信的聊天页面。有登陆界面,生成用户id,点击登陆后进入聊天界面。现在只做基本功能,后续再去填充新功能。后端代码请参考“仿微信聊天软件后端” - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-14 - **Last Updated**: 2024-01-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MarchRain This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). ## Customize configuration See [Vite Configuration Reference](https://vitejs.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Compile and Minify for Production ```sh npm run build ``` ###主要依赖 ``` ElementUI icon-park/vue-next prop description type default note theme Theme of the icons. 'outline' | 'filled' | 'two-tone' | 'multi-color' 'outline' size The width/height of the icon number | string '1em' spin Rotate icon with animation boolean false fill Colors of theme string | string[] 'currentColor' strokeLinecap the stroke-linecap prop of svg element 'butt' | 'round' | 'square' 'round' strokeLinejoin the stroke-linejoin prop of svg element 'miter' | 'round' | 'bevel' 'round' strokeWidth the stroke-width prop of svg element number 4 ``` ##开发记录 ``` 20230605创建项目做基本配置前端端口9090 20230715主窗口增加websocket连接,关闭方法;增加浏览器关闭事件处理,否则websocket服务端无法检测到客户端已经 关闭浏览器,造成当前在线人数计数错误,并在webSocketMap中保留已经关闭的连接; 20230716在线用户加载聊天记录; 20230719聊天记录样式修改;聊天窗口超出范围滑动,且滑动条隐藏; 20230723增加CenterList组件中onlineUsers属性监听,修复第一个登陆的用户无法默认选中用户问题; ```