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(
271271 showUserInput? : boolean
272272 sendMessage: (question : string , other_params_data ? : any , chat ? : chatType ) => void
273273 openChatId: () => Promise <string >
274- validate: () => Promise <boolean | string >
274+ validate: () => Promise <any >
275275 }>(),
276276 {
277277 applicationDetails : () => ({}),
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ const useApplicationStore = defineStore({
9797 applicationApi
9898 . postAppAuthentication ( token , loading , authentication_value )
9999 . 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 )
102102 resolve ( res )
103103 } )
104104 . catch ( ( error ) => {
Original file line number Diff line number Diff line change @@ -61,11 +61,11 @@ const useUserStore = defineStore({
6161 return this . userType === 1 ? localStorage . getItem ( 'token' ) : this . getAccessToken ( )
6262 } ,
6363 getAccessToken ( ) {
64- const token = sessionStorage . getItem ( `${ this . userAccessToken } accessToken` )
64+ const token = sessionStorage . getItem ( `${ this . userAccessToken } - accessToken` )
6565 if ( token ) {
6666 return token
6767 }
68- const local_token = localStorage . getItem ( `${ token } accessToken` )
68+ const local_token = localStorage . getItem ( `${ token } - accessToken` )
6969 if ( local_token ) {
7070 return local_token
7171 }
You can’t perform that action at this time.
0 commit comments