Employees-Index: Create new User.

did some work on issue #25
This commit is contained in:
Sockenklaus
2021-11-27 23:30:29 +01:00
parent 6f237ff8fa
commit 6ba4b38552
2 changed files with 22 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ import axios from '@/axios'
import { useUser } from './user'
import { useNotifications } from './notifications'
import Axios from 'axios'
import { stubFalse } from 'lodash'
const user = useUser()
const notifications = useNotifications()
@@ -142,6 +143,7 @@ export const useEmployee = defineStore({
notifications.add('success', result.statusText)
console.log(result)
return true
}
catch(error){
console.log("enter catch")
@@ -151,6 +153,7 @@ export const useEmployee = defineStore({
console.log(data)
this.apiValidationErrors = [...data.errors]
}
return false
}
},
},