Revert "feat: 移除url末尾斜杠"

This reverts commit 45138449dc.
This commit is contained in:
wsgh0202 2025-11-03 21:43:46 +08:00
parent 392df394bb
commit 9cf44d221d
No known key found for this signature in database
GPG Key ID: F9658C3FEDCF6979

View File

@ -143,13 +143,7 @@ const entry = async () => {
})
const query = filteredParamsString ? `?${filteredParamsString}` : ''
url.search = query
// 移除末尾'/'
const urlString = url.toString()
if (urlString.endsWith('/')) {
return urlString.slice(0, -1)
}
return urlString
return url.toString()
}
const createHistoryHook = (