From 43e3fbd51cbb2536d6bc7344f8287d749b529b72 Mon Sep 17 00:00:00 2001
From: lihang <lihang@vci-tech.com>
Date: 星期四, 13 七月 2023 11:14:38 +0800
Subject: [PATCH] Merge branch 'master' of http://dev.vci-tech.com:1065/r/ubcs
---
Source/UBCS-WEB/dist/src/util/flow.js | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/Source/UBCS-WEB/dist/src/util/flow.js b/Source/UBCS-WEB/dist/src/util/flow.js
new file mode 100644
index 0000000..7c9e918
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/util/flow.js
@@ -0,0 +1,20 @@
+/**
+ * 宸ヤ綔娴佺粺涓�鍒嗙被鏍煎紡
+ * @param category 鍒嗙被瀛楀吀鍙�
+ * @returns {string}
+ */
+export function flowCategory(category) {
+ return `flow_${category}`;
+}
+
+/**
+ * 鏍规嵁key鑾峰彇娴佺▼璺敱
+ * @param routes
+ * @param key
+ */
+export function flowRoute(routes, key) {
+ const data = routes.filter(d => {
+ return d.routeKey === key;
+ });
+ return data.length === 0 ? [] : data[0].routeValue;
+}
--
Gitblit v1.9.3