不假设用户一定登录

This commit is contained in:
Xu Chang 2023-09-15 12:32:53 +08:00
parent 9b9d3606e1
commit 76216db82c
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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);
};