修改了模板文件,将通用的内容直接放在模板中
This commit is contained in:
parent
f13e953692
commit
0b2c18b363
|
|
@ -1,7 +1,8 @@
|
|||
import { EntityDict } from '@project/oak-app-domain';
|
||||
import { BasicFeatures } from 'oak-frontend-base';
|
||||
import { BasicFeatures, Feature } from 'oak-frontend-base';
|
||||
import Sample from './Sample';
|
||||
import Console from './Console';
|
||||
import { createService } from 'oak-frontend-base/es/aspects/AspectService';
|
||||
|
||||
export function create(
|
||||
features: BasicFeatures<EntityDict>
|
||||
|
|
@ -17,10 +18,12 @@ export function create(
|
|||
id: 1,
|
||||
name: 1,
|
||||
}));
|
||||
const aspect = createService<EntityDict, MergeAspectDict>(cache);
|
||||
|
||||
return {
|
||||
sample,
|
||||
console,
|
||||
aspect: aspect as typeof aspect & Feature,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue