edit: response.message

This commit is contained in:
Missez 2026-02-02 09:31:22 +07:00
parent d7f824f353
commit 7de5457170
21 changed files with 227 additions and 127 deletions

View file

@ -50,7 +50,7 @@ export const useAuthStore = defineStore('auth', {
refreshTokenCookie.value = response.refreshToken;
userCookie.value = JSON.stringify(this.user);
return { token: this.token, user: this.user };
return response;
} catch (error: any) {
throw error;
}

View file

@ -52,7 +52,7 @@ export const useInstructorStore = defineStore('instructor', {
title: course.title.th,
students: 0, // TODO: Get from API
lessons: 0, // TODO: Get from course detail API
icon: ['📘', '📗', '📙', '📕', '📒'][index % 5],
icon: 'book',
thumbnail: course.thumbnail_url || null
}));
} catch (error) {