Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-frontend-base into dev
This commit is contained in:
commit
29299fcf1f
|
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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]!;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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; // 项目目录名
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue