Przeglądaj źródła

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

feige996 8 miesięcy temu
rodzic
commit
7e8a05493a
1 zmienionych plików z 1 dodań i 1 usunięć
  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))
   }