Skip to content

Commit d2386bc

Browse files
committed
Adapt remove or last slashes
1 parent 5264e36 commit d2386bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/store/config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ import App from '../App.vue'
2222

2323
export function Url() {
2424
if (process.env.NODE_ENV === 'development') {
25-
// return 'https://localhost:61091'; // GO
26-
return 'http://localhost:8130'; // GO
25+
// return 'https://localhost:61091'; // GO
26+
return 'http://localhost:8130'; // GO
2727
// return 'http://localhost:8091'; // Java
2828
}
2929
let ref = window.location.origin+window.location.pathname;
30-
console.log('Ref before:' + ref);
31-
ref.replace('/+$','')
32-
console.log('Ref after:' + ref);
30+
console.log('Ref before:' + ref + ':');
31+
ref = ref.replace(/\/+$/g,'')
32+
console.log('Ref after:' + ref + ':');
3333
return ref;
3434
}
3535

0 commit comments

Comments
 (0)