mirror of
https://github.com/motajs/template.git
synced 2026-11-13 14:44:30 +08:00
fix: 录像 onRecordCommand 钩子参数错误
This commit is contained in:
1 parent
219ac4991d
commit
34ba9e873b
1 file changed
+1
-1
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user