cardsdb computed property

This commit is contained in:
Jörn-Michael Miehe 2019-05-14 13:45:41 +02:00
parent 3f6b91f5ca
commit 0a5df6accc

View file

@ -42,8 +42,7 @@ export default {
data: () => ({ data: () => ({
user: '', user: '',
decks: '', decks: ''
cardsdb: null
}), }),
methods: { methods: {
@ -65,8 +64,11 @@ export default {
} }
}, },
computed: {
cardsdb: () => CardsDB
},
mounted() { mounted() {
this.cardsdb = CardsDB
axios axios
.post('/user/info', { .post('/user/info', {