forked from drone/command-center-dashboard

shuishen
2025-04-17 6cf66e68f32d26b2b2a3ab3ac46fb99df5420d3a
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
}