fix: base()去尾部斜杠防双斜杠URL

This commit is contained in:
pipeline-agent 2026-08-30 10:34:01 +08:00
parent b80a004fd6
commit 979cc39687

View File

@ -9,7 +9,8 @@ window.scenseGameList = (function () {
}
function base() {
return window.location.pathname.replace(/\/game\/.*$/, '');
var p = window.location.pathname.replace(/\/game\/.*$/, '');
return p.replace(/\/+$/, '');
}
function statusText(s) {