File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
components/ai-chat/component/chat-input-operate Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ const props = withDefaults(
271
271
showUserInput? : boolean
272
272
sendMessage: (question : string , other_params_data ? : any , chat ? : chatType ) => void
273
273
openChatId: () => Promise <string >
274
- validate: () => Promise <boolean | string >
274
+ validate: () => Promise <any >
275
275
}>(),
276
276
{
277
277
applicationDetails : () => ({}),
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ const useApplicationStore = defineStore({
97
97
applicationApi
98
98
. postAppAuthentication ( token , loading , authentication_value )
99
99
. then ( ( res ) => {
100
- localStorage . setItem ( `${ token } accessToken` , res . data )
101
- sessionStorage . setItem ( `${ token } accessToken` , res . data )
100
+ localStorage . setItem ( `${ token } - accessToken` , res . data )
101
+ sessionStorage . setItem ( `${ token } - accessToken` , res . data )
102
102
resolve ( res )
103
103
} )
104
104
. catch ( ( error ) => {
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ const useUserStore = defineStore({
61
61
return this . userType === 1 ? localStorage . getItem ( 'token' ) : this . getAccessToken ( )
62
62
} ,
63
63
getAccessToken ( ) {
64
- const token = sessionStorage . getItem ( `${ this . userAccessToken } accessToken` )
64
+ const token = sessionStorage . getItem ( `${ this . userAccessToken } - accessToken` )
65
65
if ( token ) {
66
66
return token
67
67
}
68
- const local_token = localStorage . getItem ( `${ token } accessToken` )
68
+ const local_token = localStorage . getItem ( `${ token } - accessToken` )
69
69
if ( local_token ) {
70
70
return local_token
71
71
}
You can’t perform that action at this time.
0 commit comments