Skip to content

Commit 8dc793a

Browse files
authored
fix: Historical user conversation data has been cleared (#2840)
1 parent 0861eb4 commit 8dc793a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

ui/src/components/ai-chat/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,11 @@ function sendMessage(val: string, other_params_data?: any, chat?: chatType) {
243243
showUserInput.value = true
244244
return
245245
})
246+
} else {
247+
showUserInput.value = false
248+
if (!loading.value && props.applicationDetails?.name) {
249+
handleDebounceClick(val, other_params_data, chat)
250+
}
246251
}
247252
}
248253

ui/src/stores/modules/user.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ const useUserStore = defineStore({
6565
if (token) {
6666
return token
6767
}
68-
return localStorage.getItem(`${this.userAccessToken}accessToken`)
68+
const local_token = localStorage.getItem(`${token}accessToken`)
69+
if (local_token) {
70+
return local_token
71+
}
72+
return localStorage.getItem(`accessToken`)
6973
},
7074

7175
getPermissions() {

0 commit comments

Comments
 (0)