ログインしていないとリバーシを観戦できない問題を修正

This commit is contained in:
syuilo
2018-07-27 04:01:12 +09:00
parent 3eb6b36866
commit fab0a0d6e2
3 changed files with 44 additions and 28 deletions

View File

@@ -105,7 +105,8 @@ export default Vue.extend({
}
},
isMyTurn(): boolean {
if (this.turnUser == null) return null;
if (!this.iAmPlayer) return false;
if (this.turnUser == null) return false;
return this.turnUser.id == this.$store.state.i.id;
},
cellsStyle(): any {