This commit is contained in:
Muhammad Shahzad
2024-06-04 00:16:08 +05:00
10 changed files with 40 additions and 40 deletions

View File

@@ -48,7 +48,7 @@ const login = async () => {
try {
store.dispatch('updateIsLoading', true)
isLoading.value = true
// isLoading.value = true
const response = await axios.post(ADMIN_LOGIN_API, {
email: credentials.value.email,
password: credentials.value.password,
@@ -70,7 +70,8 @@ const login = async () => {
});
} catch (error) {
store.dispatch('updateIsLoading', false)
isLoading.value = false
errors.value.email = error.response.data.error
// isLoading.value = false
console.error(error);
}
// try {