diff --git a/lib/AppLoader.js b/lib/AppLoader.js index b7ed56a..1e7955d 100644 --- a/lib/AppLoader.js +++ b/lib/AppLoader.js @@ -100,8 +100,6 @@ class AppLoader extends types_1.AppLoader { // 注入在提交前向dataSubscribe const originCommit = context.commit; context.commit = async () => { - const { opRecords } = context; - const userId = context.getCurrentUserId(); await originCommit.call(context); }; return context; diff --git a/src/AppLoader.ts b/src/AppLoader.ts index 73eb47c..c260e9c 100644 --- a/src/AppLoader.ts +++ b/src/AppLoader.ts @@ -125,9 +125,6 @@ export class AppLoader { - const { opRecords } = context; - const userId = context.getCurrentUserId(); - await originCommit.call(context); };