wangting
2025-01-03 b25c902a87072b5ae2dd33ab8106f8490d050e34
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)) {
@@ -99,10 +98,10 @@
      // 设置 props默认值 作用就是将字段设置成配置的
      const propsDefault = {
        label: propsConfig.label || 'name',
        path: 'code',
        code: 'code',
        path: propsConfig.path,
        code: 'id',//取唯一标识
        pathValue: 'pathValue',
        icon: propsConfig.icon || 'icon',
        icon: propsConfig.icon || 'source',
        children: propsConfig.children || 'children',
        meta: propsConfig.meta || 'meta',
      }
@@ -151,6 +150,7 @@
          icon = oMenu[propsDefault.icon],
          children = oMenu[propsDefault.children],
          meta = oMenu[propsDefault.meta] || {};
        meta.keepAlive=true;
        // meta中 keepalive 的处理
        meta = Object.assign(meta, (function () {
          if (option.keepAlive === true) {