mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-24 19:56:43 -06:00
🍕
This commit is contained in:
parent
13451f6843
commit
5defcd6592
1 changed files with 11 additions and 8 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue