Skip to content

Commit df9846b

Browse files
committed
remove trailing slash in appconst'remoteServiceBaseUrl in Vue progect
1 parent b934237 commit df9846b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

vue/src/lib/SignalRAspNetCoreHelper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ import Util from './util'
33
class SignalRAspNetCoreHelper {
44
initSignalR() {
55
var encryptedAuthToken = Util.abp.utils.getCookieValue(AppConsts.authorization.encrptedAuthTokenName);
6-
let remoteServerUrl = AppConsts.remoteServiceBaseUrl;
76
Util.abp.signalr = {
87
autoConnect: true,
98
connect: undefined,
109
hubs: undefined,
1110
qs: AppConsts.authorization.encrptedAuthTokenName + "=" + encodeURIComponent(encryptedAuthToken),
12-
remoteServiceBaseUrl: remoteServerUrl.endsWith('/') ? remoteServerUrl.slice(0, -1) : remoteServerUrl,
11+
remoteServiceBaseUrl: AppConsts.remoteServiceBaseUrl,
1312
url: '/signalr'
1413
};
1514

vue/src/lib/appconst.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import url from './url'
2-
const AppConsts= {
3-
userManagement:{
2+
const AppConsts = {
3+
userManagement: {
44
defaultAdminUserName: 'admin'
55
},
6-
localization:{
6+
localization: {
77
defaultLocalizationSourceName: 'AbpProjectName'
88
},
9-
authorization:{
9+
authorization: {
1010
encrptedAuthTokenName: 'enc_auth_token'
1111
},
1212
appBaseUrl: "http://localhost:8080",
13-
remoteServiceBaseUrl:url
13+
remoteServiceBaseUrl: url.endsWith('/') ? url.slice(0, -1) : url
1414
}
1515
export default AppConsts

0 commit comments

Comments
 (0)