This commit is contained in:
syuilo 2019-01-21 17:25:36 +09:00
parent f1243cf4c1
commit 8578d0898e
2 changed files with 4 additions and 4 deletions

View file

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

View file

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