refactor(utils): 导出ensureDecodeURIComponent函数以便复用

This commit is contained in:
feige996
2025-08-21 10:07:38 +08:00
parent 91e590b056
commit 7e8a05493a

View File

@@ -30,7 +30,7 @@ export function currRoute() {
return getUrlObj(fullPath)
}
function ensureDecodeURIComponent(url: string) {
export function ensureDecodeURIComponent(url: string) {
if (url.startsWith('%')) {
return ensureDecodeURIComponent(decodeURIComponent(url))
}