fix
This commit is contained in:
parent
22a3278447
commit
dc2f0e3682
@ -48,7 +48,7 @@ const login = async () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
store.dispatch('updateIsLoading', true)
|
store.dispatch('updateIsLoading', true)
|
||||||
isLoading.value = true
|
// isLoading.value = true
|
||||||
const response = await axios.post(ADMIN_LOGIN_API, {
|
const response = await axios.post(ADMIN_LOGIN_API, {
|
||||||
email: credentials.value.email,
|
email: credentials.value.email,
|
||||||
password: credentials.value.password,
|
password: credentials.value.password,
|
||||||
@ -71,7 +71,7 @@ const login = async () => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
store.dispatch('updateIsLoading', false)
|
store.dispatch('updateIsLoading', false)
|
||||||
errors.value.email = error.response.data.error
|
errors.value.email = error.response.data.error
|
||||||
isLoading.value = false
|
// isLoading.value = false
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
// try {
|
// try {
|
||||||
|
Loading…
Reference in New Issue
Block a user