Skip to content

Commit

Permalink
fix: fix typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
devcui committed Oct 8, 2024
1 parent a26551c commit 31049f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/bis/src/startup.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ import {
} from '@yelon/util';
import { NzSafeAny } from 'ng-zorro-antd/core/types';

export type LoadParam = { force?: boolean };
export interface LoadParam {
force?: boolean;
}

export function provideYunzaiStartup(): Provider[] {
return [
Expand Down Expand Up @@ -102,7 +104,9 @@ export class YunzaiStartupService {
}),
mergeMap(() => {
const yunzaiUser = getUser()!;
const yunzaiMenus: YunzaiMenu[] = deepCopy(yunzaiUser.menu).filter(m => m.systemCode && m.systemCode === this.config.systemCode);
const yunzaiMenus: YunzaiMenu[] = deepCopy(yunzaiUser.menu).filter(
m => m.systemCode && m.systemCode === this.config.systemCode
);
const currentMenu = yunzaiMenus.pop();
if (currentMenu) {
this.settingService.setApp({ name: currentMenu.text, description: currentMenu.intro });
Expand Down

0 comments on commit 31049f6

Please sign in to comment.