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"
|
class="clickable"
|
||||||
@click.stop="joinWriterRole"
|
@click.stop="joinWriterRole"
|
||||||
>
|
>
|
||||||
{{ writer_name }}
|
{{ $store.state.writer_name }}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="clickable"
|
class="clickable"
|
||||||
@click.stop="joinGuesserRole"
|
@click.stop="joinGuesserRole"
|
||||||
>
|
>
|
||||||
{{ guesser_name }}
|
{{ $store.state.guesser_name }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -30,10 +30,6 @@ export default {
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
data() {return {
|
|
||||||
writer_name: `Spirit`,
|
|
||||||
guesser_name: `Medium`,
|
|
||||||
}},
|
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
joinWriterRole() {},
|
joinWriterRole() {},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue