This commit is contained in:
syuilo 2019-01-21 17:25:36 +09:00
parent 443f967611
commit 01584a6bf9
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
2 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@ export default Vue.extend({
computed: { computed: {
popout(): string { popout(): string {
return this.game return this.game
? `${url}/reversi/${this.game.id}` ? `${url}/games/reversi/${this.game.id}`
: `${url}/reversi`; : `${url}/games/reversi`;
} }
} }
}); });

View File

@ -19,10 +19,10 @@ export default Vue.extend({
methods: { methods: {
nav(game, actualNav) { nav(game, actualNav) {
if (actualNav) { if (actualNav) {
this.$router.push(`/reversi/${game.id}`); this.$router.push(`/games/reversi/${game.id}`);
} else { } else {
// TODO: https://github.com/vuejs/vue-router/issues/703 // TODO: https://github.com/vuejs/vue-router/issues/703
this.$router.push(`/reversi/${game.id}`); this.$router.push(`/games/reversi/${game.id}`);
} }
} }
} }