edit: response.message
This commit is contained in:
parent
d7f824f353
commit
7de5457170
21 changed files with 227 additions and 127 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue