Skip to content

Commit 2a83e67

Browse files
committed
fix: 防止重复修改标题
1 parent 8716185 commit 2a83e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/native/workhub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class WorkhubModel extends HttpClient {
2020
}
2121

2222
public exec(id: string, rq: ScriptPayload): Promise<{ Id: number }> {
23-
rq.Name = 'Exec: ' + rq.Name;
23+
rq = { ...rq, Name: 'Exec: ' + rq.Name };
2424
return this.post('/workhub/exec/' + id, rq);
2525
}
2626

0 commit comments

Comments
 (0)