coffcer / vue-chat Goto Github PK
View Code? Open in Web Editor NEWchat example by vue.js + vuex + webpack
Home Page: http://coffcer.github.io/vue-chat/
chat example by vue.js + vuex + webpack
Home Page: http://coffcer.github.io/vue-chat/
在线运行报错了,Cannot read property 'bind' of undefined
buid.js报错
你好,这个可以加好友和发图吗
比如说动态添加user,左侧用户列表,以及动态发消息,通过js控制
store.watch(
(state) => state.sessions,
(val) => {
console.log('CHANGE: ', val);
localStorage.setItem('vue-chat-session', JSON.stringify(val));
},
{
deep: true
}
);
这里的(val)=>指的是什么呢
博主,我在找一个可以适配手机端H5的前端效果,Vue-chat 的视觉效果非常棒,但是好像不能适配手机端,请问我是否可以自己实现,或者,有没有推荐的 source 我可以用?
项目下载下来之后,包安装好启动,build报错
有源码么,没压缩的
这个能不能运行在 VUE 2.0?
还有我用 LARAVEL 框架 应该怎么引入?
你好,我才开始学vue,对babel也不熟悉。我试图用javascript改写text.vue,内容如下:
<script type="text/javascript"> define(function() { var Vue = require('vue') var text = Vue.extend({ template: "#tp", props: ['session'], data: function() { return { text: '' } }, methods: { inputing: function(e) { if (e.ctrlKey && e.keyCode === 13 && this.text.length) { this.session.messages.push({ text: this.text, date: new Date(), self: true }); this.text = ''; } } } }) return { text: text } }) </script>浏览器提示“You are setting a non-existent path "text" on a vm instance”错误。
如果去掉define,直接写在script的根标签下,
如下:
会报"v-on:keyup="inputing" expects a function value, got undefined"的错误。
能否请您指点一下?
请问store.js
中的这段代码,为什么mutation
是用dispatch
在提交呢?
dispatch
不是用来分发action
的吗?commit
才是用来提交mutation
的啊。
// store.js
export const actions = {
initData: ({ dispatch }) => dispatch('INIT_DATA'),
sendMessage: ({ dispatch }, content) => dispatch('SEND_MESSAGE', content),
selectSession: ({ dispatch }, id) => dispatch('SELECT_SESSION', id),
search: ({ dispatch }, value) => dispatch('SET_FILTER_KEY', value)
};
npm i
npm run dev
will generate error message -> 'Uncaught TypeError: Cannot read property 'bind' of undefined'
不知博主对于这个框架有没有运用strophe连接xmpp的实例?我整合过来的话xmpp连接不上
控制台报错 Uncaught TypeError: Cannot read property 'webpackHotUpdate' of undefined
已经看到了,谢谢!
我做websocket怎么回调往里面添加消息?
ctrl+enter 没法发送啊?
你好,请问会话列表怎么从外部获取了?
Could you please specify a license or terms under which the source code of the project is distributed?
Uncaught TypeError: Cannot read property 'filter' of undefined
尊敬的原作者:
您好,在技术社区看到了您的这篇vue框架的作品,个人参考后重新写了一次并发布在github上,鉴于版权问题已经署上了您的原文出处,特此通知,希望能得到您的批准使用,如觉得不便,可联系我删除,最后,再次表示对您的感谢。
npm run build后没有index.html,部署到服务器的时候没有index.html,dist文件夹里也没有img,js,css文件夹,这个怎么处理?
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.