knowyt/client/src/pages/play.vue

26 lines
345 B
Vue
Raw Normal View History

2021-07-30 18:18:04 +00:00
<template>
<div>
<pre class="json">{{ json }}</pre>
</div>
</template>
<script>
export default {
2021-07-30 19:03:43 +00:00
mounted() {
this.$engine.start()
2021-07-30 18:18:04 +00:00
},
computed: {
json() {
2021-07-30 19:03:43 +00:00
return JSON.stringify(this.$store.state.engine.json, null, 2)
2021-07-30 18:18:04 +00:00
},
}
}
</script>
<style lang="scss">
.json {
margin: 1em 2em;
color: #ffffff;
}
</style>