zhou zhou
10 小时以前 a49845f424ae5b1e43e391837a55c43ce07ea62d
rsf-design/src/api/system-manage.js
@@ -213,7 +213,10 @@
}
function fetchOperationRecordPage(params = {}) {
  return request.post({ url: '/operationRecord/page', params: buildOperationRecordPageParams(params) })
  return request.post({
    url: '/operationRecord/page',
    params: buildOperationRecordPageParams(params)
  })
}
function fetchConfigPage(params = {}) {
@@ -611,7 +614,9 @@
}
function fetchGetMenuList(params = {}) {
  return request.post({ url: '/menu/list', params }).then((menuList) => adaptLegacyMenuTree(buildLegacyMenuTree(menuList)))
  return request
    .post({ url: '/menu/list', params })
    .then((menuList) => adaptLegacyMenuTree(buildLegacyMenuTree(menuList)))
}
function adaptLegacyMenuTree(menuTree) {
@@ -619,9 +624,7 @@
    return []
  }
  return menuTree
    .map((node) => adaptLegacyMenuNode(node))
    .filter(Boolean)
  return menuTree.map((node) => adaptLegacyMenuNode(node)).filter(Boolean)
}
function buildLegacyMenuTree(menuList) {
@@ -770,11 +773,12 @@
}
function buildLegacyMenuPath(node) {
  const rawPath = typeof node.route === 'string' && node.route.trim()
    ? node.route
    : typeof node.path === 'string'
      ? node.path
      : ''
  const rawPath =
    typeof node.route === 'string' && node.route.trim()
      ? node.route
      : typeof node.path === 'string'
        ? node.path
        : ''
  return normalizeLegacyPath(rawPath)
}