forked from drone/command-center-dashboard

罗广辉
2025-04-21 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7
src/utils/flow.js
@@ -4,7 +4,7 @@
 * @returns {string}
 */
export function flowCategory(category) {
  return `flow_${category}`;
   return `flow_${category}`
}
/**
@@ -13,8 +13,8 @@
 * @param key
 */
export function flowRoute(routes, key) {
  const data = routes.filter(d => {
    return d.routeKey === key;
  });
  return data.length === 0 ? [] : data[0].routeValue;
   const data = routes.filter(d => {
      return d.routeKey === key
   })
   return data.length === 0 ? [] : data[0].routeValue
}