mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 04:01:10 -04:00
mail refactor
This commit is contained in:
@ -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: []
|
||||
}
|
||||
|
||||
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user