Skip to content

Commit 5264e36

Browse files
committed
Adapt reference correctly
1 parent 3c75e5d commit 5264e36

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/store/config.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@ import Vue from 'vue';
2121
import App from '../App.vue'
2222

2323
export function Url() {
24-
console.log('Ref:' + window.location.origin+window.location.pathname);
2524
if (process.env.NODE_ENV === 'development') {
2625
// return 'https://localhost:61091'; // GO
2726
return 'http://localhost:8130'; // GO
2827
// return 'http://localhost:8091'; // Java
2928
}
30-
return window.location.origin+window.location.pathname;
29+
let ref = window.location.origin+window.location.pathname;
30+
console.log('Ref before:' + ref);
31+
ref.replace('/+$','')
32+
console.log('Ref after:' + ref);
33+
return ref;
3134
}
3235

3336
export function AppName() {

0 commit comments

Comments
 (0)