fix: webui can't handle hash property of URL well (#515)

This commit is contained in:
sigoden
2024-12-28 09:53:59 +08:00
committed by GitHub
parent cbc620481d
commit af95ea1cd7

View File

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