fixed customer logout error

This commit is contained in:
asift798
2022-02-17 12:39:10 +05:30
parent db7a084a19
commit 2f69b6fa71

View File

@ -103,7 +103,7 @@ export const useAuthStore = defineStore({
logout(data) { logout(data) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.post(`${data}/customer/logout`) .post(`/${data}/customer/logout`)
.then((response) => { .then((response) => {
const notificationStore = useNotificationStore() const notificationStore = useNotificationStore()
notificationStore.showNotification({ notificationStore.showNotification({