修复BUG: baseURL获取bug

pull/71/MERGE
李强 2022-11-01 00:58:13 +08:00
parent 39a4e932d8
commit 2cc05a12c5
1 changed files with 1 additions and 1 deletions

View File

@ -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('/')) {