Ver código fonte

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

feige996 8 meses atrás
pai
commit
7e8a05493a
1 arquivos alterados com 1 adições e 1 exclusões
  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))
   }