inl-ui 0.0.74 → 0.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,3 +7,16 @@ export const randomKey = () => {
7
7
  Math.random().toString(16).substring(2, 15)
8
8
  );
9
9
  };
10
+
11
+ // 运行信号
12
+ export const getStatus = (runStatus: string) => {
13
+ let result;
14
+ if (runStatus === "0") {
15
+ result = "未运行";
16
+ } else if (runStatus === "1") {
17
+ result = "已运行";
18
+ } else if (runStatus === "2") {
19
+ result = "未知";
20
+ }
21
+ return result;
22
+ };