mirror of
https://github.com/motajs/template.git
synced 2026-09-28 06:00:17 +08:00
fix: 录像 onRecordCommand 钩子参数错误
This commit is contained in:
parent
219ac4991d
commit
34ba9e873b
@ -63,7 +63,7 @@ export class ReplaySystem
|
||||
record(code: number, ...params: ReplayParamValue[]): void {
|
||||
this.route.add(code, params);
|
||||
this.forEachHook(hook =>
|
||||
hook.onRecordCommand?.(code, this.route.length, params)
|
||||
hook.onRecordCommand?.(code, this.route.length - 1, params)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user