File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ class SignalRAspNetCoreHelper {
1212 connect : undefined ,
1313 hubs : undefined ,
1414 qs : AppConsts . authorization . encrptedAuthTokenName + '=' + encodeURIComponent ( encryptedAuthToken ) ,
15- url : AppConsts . remoteServiceBaseUrl + '/signalr' ,
15+ remoteServiceBaseUrl : AppConsts . remoteServiceBaseUrl ,
16+ url : '/signalr'
1617 } ;
1718
1819 Util . loadScript ( AppConsts . appBaseUrl + '/dist/abp.signalr-client.js' ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ class SignalRAspNetCoreHelper{
99 connect : undefined ,
1010 hubs : undefined ,
1111 qs : AppConsts . authorization . encrptedAuthTokenName + "=" + encodeURIComponent ( encryptedAuthToken ) ,
12- url : AppConsts . remoteServiceBaseUrl + '/signalr'
12+ remoteServiceBaseUrl : AppConsts . remoteServiceBaseUrl ,
13+ url : '/signalr'
1314 } ;
1415
1516 Util . loadScript ( AppConsts . appBaseUrl + '/dist/abp.signalr-client.js' ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ const AppConsts= {
1010 encrptedAuthTokenName : 'enc_auth_token'
1111 } ,
1212 appBaseUrl : "http://localhost:8080" ,
13- remoteServiceBaseUrl :url
13+ remoteServiceBaseUrl : url . endsWith ( '/' ) ? url . slice ( 0 , - 1 ) : url
1414}
1515export default AppConsts
You can’t perform that action at this time.
0 commit comments