mail refactor

This commit is contained in:
Jay_Makwana
2019-11-19 20:36:06 +05:30
parent 4ef5a3efb2
commit 3a5fa43ef4
3 changed files with 13 additions and 8 deletions

View File

@ -35,9 +35,9 @@ export default {
data () {
return {
mailConfigData: {
mail_driver: 'smtp'
mail_driver: 'mail'
},
mail_driver: 'smtp',
mail_driver: 'mail',
loading: false,
mail_drivers: []
}

View File

@ -101,6 +101,7 @@
import MultiSelect from 'vue-multiselect'
import { validationMixin } from 'vuelidate'
import Ls from '../../services/ls'
import { mapActions } from 'vuex'
const { required, minLength, email } = require('vuelidate/lib/validators')
export default {
@ -149,6 +150,9 @@ export default {
this.getOnboardingData()
},
methods: {
...mapActions('auth', [
'loginOnBoardingUser'
]),
async getOnboardingData () {
let response = await window.axios.get('/api/admin/onboarding')
if (response.data) {
@ -201,6 +205,7 @@ export default {
// this.$emit('next')
this.loading = false
Ls.set('auth.token', response.data.token)
this.loginOnBoardingUser(response.data.token)
this.$router.push('/admin/dashboard')
}
}