File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " tianji-client-sdk" ,
3- "version" : " 1.4.0 " ,
3+ "version" : " 1.4.1 " ,
44 "description" : " " ,
55 "main" : " lib/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -99,10 +99,18 @@ export async function reportApplicationScreenView(
9999 return ;
100100 }
101101
102+ if ( screenName ) {
103+ currentScreenName = screenName ;
104+ }
105+
106+ if ( screenParams ) {
107+ currentScreenParams = screenParams ;
108+ }
109+
102110 const payload : ApplicationEventPayload = {
103111 application : options . applicationId ,
104- screen : screenName ?? currentScreenName ,
105- params : screenParams ?? currentScreenParams ,
112+ screen : currentScreenName ,
113+ params : currentScreenParams ,
106114 } ;
107115
108116 sendApplicationRequest ( options . serverUrl , 'event' , payload ) ;
You can’t perform that action at this time.
0 commit comments