projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Advance on components/game.js
[vchess.git]
/
public
/
javascripts
/
index.js
diff --git
a/public/javascripts/index.js
b/public/javascripts/index.js
index
bc4cd9e
..
fe0b36a
100644
(file)
--- a/
public/javascripts/index.js
+++ b/
public/javascripts/index.js
@@
-38,9
+38,9
@@
new Vue({
if (data.code == "counts")
this.counts = data.counts;
else if (data.code == "increase")
if (data.code == "counts")
this.counts = data.counts;
else if (data.code == "increase")
- this.counts[data.v
name
]++;
+ this.counts[data.v
id
]++;
else if (data.code == "decrease")
else if (data.code == "decrease")
- this.counts[data.v
name
]--;
+ this.counts[data.v
id
]--;
};
const socketCloseListener = () => {
this.conn = new WebSocket(url + "/?sid=" + sid + "&page=index");
};
const socketCloseListener = () => {
this.conn = new WebSocket(url + "/?sid=" + sid + "&page=index");