Change to using the VueX store, rather than the data object.
This commit is contained in:
parent
9c0a9b5917
commit
2c26fc8e0a
1 changed files with 2 additions and 6 deletions
|
|
@ -5,13 +5,13 @@
|
|||
class="clickable"
|
||||
@click.stop="joinWriterRole"
|
||||
>
|
||||
{{ writer_name }}
|
||||
{{ $store.state.writer_name }}
|
||||
</button>
|
||||
<button
|
||||
class="clickable"
|
||||
@click.stop="joinGuesserRole"
|
||||
>
|
||||
{{ guesser_name }}
|
||||
{{ $store.state.guesser_name }}
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -30,10 +30,6 @@ export default {
|
|||
required: true,
|
||||
},
|
||||
},
|
||||
data() {return {
|
||||
writer_name: `Spirit`,
|
||||
guesser_name: `Medium`,
|
||||
}},
|
||||
computed: {},
|
||||
methods: {
|
||||
joinWriterRole() {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue