aermin / vue-chat Goto Github PK
View Code? Open in Web Editor NEW:calling: A web chat application. Vue + node(koa2) + Mysql + socket.io
Home Page: https://im.aermin.top/group_chat/ddbffd80-3663-11e9-a580-d119b23ef62e
License: MIT License
:calling: A web chat application. Vue + node(koa2) + Mysql + socket.io
Home Page: https://im.aermin.top/group_chat/ddbffd80-3663-11e9-a580-d119b23ef62e
License: MIT License
如题所示啦
大哥啊,你这代码样式和线上运行的样式,不一致啊,就为了你这登录页面来的呢。。。结果样式根本就不对
Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column \'n.content\' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
这个问题俺也不会啊,后面有懂的可以说说
新建群的时候,不像新建用户那样有用户名作为独特唯一的标记,
那怎么办呢?
想到两种方案:
1.新增一个字段,用uuid的包生成uuid放进去
package/uuid
使用方法 :
const uuidv1 = require('uuid/v1');
uuidv1(); // ⇨ 'f64f2940-fae4-11e7-8c5f-ef356f279131'
2.在执行建群操作时返回自增id
SELECT LAST_INSERT_ID()
这个没能搞定,没能简单搞定。。。
我选择了第一个方案,没在刚开始就注意到这个问题,现在要改不少地方。。😂吃下这一堑了
请问MySQL文件在哪
打包后生产模式下 nginx 默认80端口。但服务端数据API是3000端口的,404请求不到数据。
http://XXX:3000/dist/index.html 是可以请求到数据。
http://XXX/dist/index.html API请求都是404。
为什么 mysql
查出来的数据都要先 JSON.parse(JSON.stringify(RowDataPacket))
group_avator
varchar(50) NOT NULL DEFAULT 'https://avatars2.githubusercontent.com/u/24861316?s=460&v=4' COMMENT '群头像',
默认值有59位 而varchar(50) lol
请问开发一个类似的聊天工具对初学Vue.js的适合拿来当成练手项目吗?
server 要是能用go写一个版本就好了
聊天记录如果要支持右键菜单“转发”“删除”“复制”等功能,怎么实现?楼主或其他网友有什么好的想法吗
我看你在http://www.hxvin.com:3000/ 上说了,说明线上没问题,所以在你的本地开发环境没办法登录是吧?可否截个报错的图?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.