Skip to content

Commit 3e94848

Browse files
committed
fix: update localStorage key for AI exam task management to ensure consistency across components
1 parent ded9a9c commit 3e94848

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/src/components/GenerateAIExamModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ const apiKeyStatus = ref({ has_api_key: false, api_key_masked: null })
349349
const apiKeyForm = ref({ key: '' })
350350
const apiKeyLoading = ref(false)
351351
352-
const TASK_STORAGE_KEY = 'ai_exam_current_task'
352+
const TASK_STORAGE_KEY = 'aiExamCurrentTask'
353353
354354
const form = ref({
355355
category: null,

frontend/src/components/Navbar.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ export default {
458458
sessionStorage.removeItem('authToken')
459459
localStorage.removeItem('selectedSubject')
460460
localStorage.removeItem('adminCurrentTab')
461+
localStorage.removeItem('aiExamCurrentTask')
461462
this.isAuthenticated = false
462463
this.userData = null
463464

0 commit comments

Comments
 (0)