修复BUG: baseURL获取bug
parent
39a4e932d8
commit
2cc05a12c5
|
@ -54,7 +54,7 @@ util.baseURL = function () {
|
||||||
}
|
}
|
||||||
baseURL = baseURL.split('/')[0] + '//' + baseURL.split('/')[1] + host + '/' + param
|
baseURL = baseURL.split('/')[0] + '//' + baseURL.split('/')[1] + host + '/' + param
|
||||||
} else {
|
} else {
|
||||||
baseURL = location.protocol + '//' + location.hostname + ':' + location.port + baseURL
|
baseURL = location.protocol + '//' + location.hostname + (location.port ? ':' : '') + location.port + baseURL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!baseURL.endsWith('/')) {
|
if (!baseURL.endsWith('/')) {
|
||||||
|
|
Loading…
Reference in New Issue