@@ -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
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user