assistsx-js 0.0.2043 → 0.0.2046
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.
- package/dist/Step.d.ts +1 -1
- package/dist/Step.js +12 -1
- package/package.json +1 -1
- package/src/Step.ts +12 -2
package/dist/Step.d.ts
CHANGED
package/dist/Step.js
CHANGED
|
@@ -23,7 +23,18 @@ export class Step {
|
|
|
23
23
|
let nextStep;
|
|
24
24
|
try {
|
|
25
25
|
//步骤开始
|
|
26
|
-
|
|
26
|
+
if (stepId) {
|
|
27
|
+
this._stepId = stepId;
|
|
28
|
+
if (Step.showLog) {
|
|
29
|
+
console.log(`使用传入步骤ID: ${this._stepId}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this._stepId = generateUUID();
|
|
34
|
+
if (Step.showLog) {
|
|
35
|
+
console.log(`生成步骤ID: ${this._stepId}`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
27
38
|
stepStore.startStep(this._stepId, tag, data);
|
|
28
39
|
currentStep = new Step({
|
|
29
40
|
stepId: this._stepId,
|
package/package.json
CHANGED
package/src/Step.ts
CHANGED
|
@@ -55,14 +55,24 @@ export class Step {
|
|
|
55
55
|
data?: any | undefined;
|
|
56
56
|
delayMs?: number;
|
|
57
57
|
} = {}
|
|
58
|
-
): Promise<Step> {
|
|
58
|
+
): Promise<Step | undefined> {
|
|
59
59
|
const stepStore = useStepStore();
|
|
60
60
|
let implnName = impl.name;
|
|
61
61
|
let currentStep: Step | undefined;
|
|
62
62
|
let nextStep: Step | undefined;
|
|
63
63
|
try {
|
|
64
64
|
//步骤开始
|
|
65
|
-
|
|
65
|
+
if (stepId) {
|
|
66
|
+
this._stepId = stepId;
|
|
67
|
+
if (Step.showLog) {
|
|
68
|
+
console.log(`使用传入步骤ID: ${this._stepId}`);
|
|
69
|
+
}
|
|
70
|
+
} else {
|
|
71
|
+
this._stepId = generateUUID();
|
|
72
|
+
if (Step.showLog) {
|
|
73
|
+
console.log(`生成步骤ID: ${this._stepId}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
66
76
|
|
|
67
77
|
stepStore.startStep(this._stepId, tag, data);
|
|
68
78
|
currentStep = new Step({
|