use the dataStore to get domains from userCreate

This commit is contained in:
Axolotle 2020-07-16 16:08:28 +02:00
parent ea51885361
commit b5898d41aa

View file

@ -128,8 +128,12 @@ export default {
mailbox_quota: '',
password: '',
confirmation: ''
}
}
},
domains: ['f']
computed: {
domains () {
return this.$store.state.data.domains
}
},
methods: {
@ -142,6 +146,9 @@ export default {
data.mail = `${data.email}@${data.domain}`
// TODO post data
}
},
created () {
this.$store.dispatch('FETCH', 'domains')
}
}
</script>