不假设用户一定登录
This commit is contained in:
parent
9b9d3606e1
commit
76216db82c
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -125,9 +125,6 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Async
|
|||
// 注入在提交前向dataSubscribe
|
||||
const originCommit = context.commit;
|
||||
context.commit = async () => {
|
||||
const { opRecords } = context;
|
||||
const userId = context.getCurrentUserId();
|
||||
|
||||
await originCommit.call(context);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue