wangting
2025-01-02 e358d69fc18870584dd2d9f531910b7838ea27d9
Source/plt-web/plt-web-ui/src/router/avue-router.js
@@ -57,7 +57,6 @@
    },
    //处理路由
    getPath: function (params) {
      console.log('params',params)
      let {src} = params;
      let result = src || '/';
      if (isURL(src)) {
@@ -182,7 +181,7 @@
          meta: meta,
          redirect: (() => {
            // 第一次进来但是没有子路由的 需要添加redirect
            if (!isChild && first && !isURL(path)) return `${path}/index`
            if (!isChild && first && !isURL(path)) return `/${code}/index`
            else return '';
          })(),
          // 整理子路由的route 配置