Pārlūkot izejas kodu

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

feige996 8 mēneši atpakaļ
vecāks
revīzija
7e8a05493a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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))
   }