feat: 脚本录制功能完善
This commit is contained in:
@@ -68,6 +68,7 @@ export enum IPC_EVENTS {
|
||||
SCRIPT_RUN = 'script:run',
|
||||
SCRIPT_RECORD_START = 'script:record-start',
|
||||
SCRIPT_RECORD_STOP = 'script:record-stop',
|
||||
SCRIPT_CODEGEN = 'script:codegen',
|
||||
|
||||
// 更新
|
||||
UPDATE_CHECK = 'update:check',
|
||||
|
||||
@@ -15,4 +15,6 @@ export const scriptApi = {
|
||||
window.api.scriptApi.startRecording(url),
|
||||
stopRecording: (): Promise<{ success: boolean; code?: string; error?: string }> =>
|
||||
window.api.scriptApi.stopRecording(),
|
||||
codegen: (id: string, url?: string): Promise<{ success: boolean; code?: string; error?: string }> =>
|
||||
window.api.scriptApi.codegen(id, url),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user