From f9a524f956ba866626452be1d2791dffde947ca3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 3 Aug 2018 22:49:54 +0900 Subject: [PATCH] :pizza: --- .../components/games/reversi/reversi.vue | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/client/app/common/views/components/games/reversi/reversi.vue b/src/client/app/common/views/components/games/reversi/reversi.vue index 60d46307e..94431845b 100644 --- a/src/client/app/common/views/components/games/reversi/reversi.vue +++ b/src/client/app/common/views/components/games/reversi/reversi.vue @@ -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(); + }); + } } },