feat: Initialize e-learning frontend with course browsing, landing, and authentication pages, along with core layouts and composables.
This commit is contained in:
parent
a0b93978a7
commit
a201c4285b
8 changed files with 129 additions and 198 deletions
|
|
@ -95,10 +95,11 @@ const handleLogin = async () => {
|
|||
isLoading.value = false
|
||||
|
||||
if (result.success) {
|
||||
// REMEMBER ME LOGIC
|
||||
// จดจำฉัน: บันทึกอีเมลลงเครื่องเฉพาะตอนติ๊กถูกเท่านั้น
|
||||
if (rememberMe.value) {
|
||||
localStorage.setItem('remembered_email', loginForm.email)
|
||||
} else {
|
||||
// ถ้าไม่ได้ติ๊ก ให้ลบทิ้งเพื่อความปลอดภัย
|
||||
localStorage.removeItem('remembered_email')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue