✌️
This commit is contained in:
parent
17b41eced9
commit
f5fec3d008
7 changed files with 119 additions and 6 deletions
|
|
@ -67,6 +67,7 @@ export default Vue.extend({
|
|||
components: {
|
||||
XGameroom
|
||||
},
|
||||
props: ['initGame'],
|
||||
data() {
|
||||
return {
|
||||
game: null,
|
||||
|
|
@ -80,6 +81,16 @@ export default Vue.extend({
|
|||
connectionId: null
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
game(g) {
|
||||
this.$emit('gamed', g);
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.initGame) {
|
||||
this.game = this.initGame;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.connection = (this as any).os.streams.othelloStream.getConnection();
|
||||
this.connectionId = (this as any).os.streams.othelloStream.use();
|
||||
|
|
@ -162,6 +173,7 @@ export default Vue.extend({
|
|||
|
||||
.mk-othello
|
||||
color #677f84
|
||||
background #fff
|
||||
|
||||
> .matching
|
||||
> h1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue