Forráskód Böngészése

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

feige996 8 hónapja
szülő
commit
7e8a05493a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/utils/index.ts

+ 1 - 1
src/utils/index.ts

@@ -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))
   }