key value fix in websocket

This commit is contained in:
ori agranat
2019-10-11 00:48:59 +03:00
parent 0c56aa878e
commit c841f3d456

View File

@@ -13,7 +13,7 @@ Vue.prototype.$msgPack = msgPack;
Vue.mixin({
methods:{
handleInput(key,value){
let msg = this.$msgPack().encode({key,value})
let msg = this.$msgPack().encode({[key]:value})
this.$socket.send(msg);
}
}