1234567891011121314151617181920212223 |
- <template>
- <div class="home">
- {{ text }}
- </div>
- </template>
- <script>
- export default {
- name: 'Home',
- data () {
- return {
- text: null
- }
- },
- created () {
- this.$store.dispatch('GET_TEXT', { id: 1 }).then(data => {
- this.text = data.textref
- })
- }
- }
- </script>
|