Tyloo Chat
v2.1.7版本
本項目fork自genal-chat做了優化升級,感謝大佬Genal開源提供思路!
目前還在抽空持續優化中,敬請期待!!!
覺得還不錯的話可以點個Star鼓勵一下!!!







前端
後端
Socket.io
ElasticSearch ES搜索引擎(用於機器人快捷自動回复)
Nodejieba node版本中文分詞器

utf8bm64``utf8bm64``utf8bm64 !!! ) // windows系统需要配置一下,提交时转换为LF,检出时不转换
git config --global core.autocrlf input
// 设置为区分大小写
git config core.ignorecase false
// client
cd client
cnpm i
npm start // server
cd server
cnpm i
npm run start Deploy
CentOS下部署聊天室
userId以及username參數 let chatUrl // 当前聊天室客户端地址
let userId // 当前系统用户userId
let username // 当前系统用户昵称
window . open ( ` ${ chatUrl } ?userId= ${ userId } &username= ${ username } ` ) ;聊天室獲取參數並自動完成登陸(若為首次登陸會自動註冊賬號)
設置聊天室client VUE_APP_ORG_URL為獲取第三方系統組織架構的接口地址
// .env.xxx
// 此接口可以获取到第三方系统的所有部门和人员信息,注意为嵌套tree结构
VUE_APP_ORG_URL = http : / / 127.0 .0 .1 : 8080 / api / getDeptUsersTree // Contact.vue
axios . post ( process . env . VUE_APP_ORG_URL ) . then ( ( res ) => {
this . organizationArr = res . data . data ;
} ) ; interface node {
id: string ; // id
label: string ; // 名称
flag: boolean ; // 是否有下级结点
children: node [ ] ; // 下级结点
}VUE_APP_ORG_URL即可,其他情況自行定制修改。 webSocket建立流程
@功能实现消息转发代码性能优化群聊功能继续完善微信快捷登陆Electron客户端检查更新