diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-03 22:49:54 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-03 22:49:54 +0900 |
| commit | 5defcd6592dfb774eb430b44fb4e44eb29cf52bb (patch) | |
| tree | 07fee3a945440e045305676390d1d2db22542f7a | |
| parent | :v: (diff) | |
| download | misskey-5defcd6592dfb774eb430b44fb4e44eb29cf52bb.tar.gz misskey-5defcd6592dfb774eb430b44fb4e44eb29cf52bb.tar.bz2 misskey-5defcd6592dfb774eb430b44fb4e44eb29cf52bb.zip | |
:pizza:
| -rw-r--r-- | src/client/app/common/views/components/games/reversi/reversi.vue | 19 |
1 files 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 60d46307e8..94431845b0 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(); + }); + } } }, |