Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-frontend-base into dev

This commit is contained in:
Xu Chang 2025-01-20 11:22:46 +08:00
commit 29299fcf1f
4 changed files with 4 additions and 3 deletions

View File

@ -369,7 +369,7 @@ export class Cache extends Feature {
if (filter && !data && typeof filter.id === 'string') { if (filter && !data && typeof filter.id === 'string') {
id = filter.id; id = filter.id;
ts = this.cacheStore.getLastUpdateTs(); ts = this.cacheStore.getLastUpdateTs();
if (this.entityActionAuthDict[ts]?.[entity]?.[id]?.[checkTypeString].hasOwnProperty(action)) { if (this.entityActionAuthDict[ts]?.[entity]?.[id]?.[checkTypeString]?.hasOwnProperty(action)) {
return this.entityActionAuthDict[ts][entity][id][checkTypeString][action]; return this.entityActionAuthDict[ts][entity][id][checkTypeString][action];
} }
} }

View File

@ -372,7 +372,7 @@ class Cache extends Feature_1.Feature {
if (filter && !data && typeof filter.id === 'string') { if (filter && !data && typeof filter.id === 'string') {
id = filter.id; id = filter.id;
ts = this.cacheStore.getLastUpdateTs(); ts = this.cacheStore.getLastUpdateTs();
if (this.entityActionAuthDict[ts]?.[entity]?.[id]?.[checkTypeString].hasOwnProperty(action)) { if (this.entityActionAuthDict[ts]?.[entity]?.[id]?.[checkTypeString]?.hasOwnProperty(action)) {
return this.entityActionAuthDict[ts][entity][id][checkTypeString][action]; return this.entityActionAuthDict[ts][entity][id][checkTypeString][action];
} }
} }

View File

@ -510,7 +510,7 @@ export class Cache<ED extends EntityDict & BaseEntityDict> extends Feature {
if (filter && !data && typeof filter.id === 'string') { if (filter && !data && typeof filter.id === 'string') {
id = filter.id; id = filter.id;
ts = this.cacheStore.getLastUpdateTs(); ts = this.cacheStore.getLastUpdateTs();
if (this.entityActionAuthDict[ts]?.[entity]?.[id]?.[checkTypeString].hasOwnProperty(action)) { if (this.entityActionAuthDict[ts]?.[entity]?.[id]?.[checkTypeString]?.hasOwnProperty(action)) {
return this.entityActionAuthDict[ts]![entity]![id]![checkTypeString]![action]!; return this.entityActionAuthDict[ts]![entity]![id]![checkTypeString]![action]!;
} }
} }

1
typings/react.d.ts vendored
View File

@ -10,6 +10,7 @@ declare namespace NodeJS {
readonly OAK_PLATFORM: 'web' | 'wechatMp' | 'server' | 'native'; readonly OAK_PLATFORM: 'web' | 'wechatMp' | 'server' | 'native';
readonly HOST_NAME: string; readonly HOST_NAME: string;
readonly OAK_DEV_MODE: 'frontend' | 'server'; // frontend纯前台模式、server前后台模式 readonly OAK_DEV_MODE: 'frontend' | 'server'; // frontend纯前台模式、server前后台模式
readonly SUB_DIR_NAME: string; // 项目目录名
} }
} }