fix: webui can't handle hash property of URL well

pull/515/head
sigoden 2024-12-28 09:46:40 +08:00
parent cbc620481d
commit af64e0d2c6
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ function newUrl(name) {
}
function baseUrl() {
return location.href.split('?')[0];
return location.href.split(/[?#]/)[0];
}
function baseName(url) {