This commit is contained in:
syuilo 2018-08-03 22:49:54 +09:00
parent 13451f6843
commit 5defcd6592

View file

@ -46,14 +46,17 @@ export default Vue.extend({
watch: {
gameId(id) {
console.log(id);
Progress.start();
(this as any).api('games/reversi/games/show', {
gameId: id
}).then(game => {
this.nav(game, true);
Progress.done();
});
if (id == null) {
this.game = null;
} else {
Progress.start();
(this as any).api('games/reversi/games/show', {
gameId: id
}).then(game => {
this.nav(game, true);
Progress.done();
});
}
}
},