Browse Source

低版本不支持replaceAll

CzRger 1 year ago
parent
commit
e1982a276a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -128,7 +128,7 @@ const setRouters = () => {
                 }
             }
             obj.name = v.menuCode
-            obj.path = '/' + _pA.map(v => v.path.replaceAll('/', '')).join('/')
+            obj.path = '/' + _pA.map(v => v.path.replace('/', '')).join('/')
             if (v.children?.length > 0) {
                 obj.children = deep(v.children, _pA)
                 obj.component = RouterViewCom