fix: Historical user conversation data has been cleared (#2840)
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

This commit is contained in:
shaohuzhang1 2025-04-09 19:16:42 +08:00 committed by GitHub
parent 0861eb4cdc
commit 8dc793a128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -243,6 +243,11 @@ function sendMessage(val: string, other_params_data?: any, chat?: chatType) {
showUserInput.value = true
return
})
} else {
showUserInput.value = false
if (!loading.value && props.applicationDetails?.name) {
handleDebounceClick(val, other_params_data, chat)
}
}
}

View File

@ -65,7 +65,11 @@ const useUserStore = defineStore({
if (token) {
return token
}
return localStorage.getItem(`${this.userAccessToken}accessToken`)
const local_token = localStorage.getItem(`${token}accessToken`)
if (local_token) {
return local_token
}
return localStorage.getItem(`accessToken`)
},
getPermissions() {