Skip to content

Commit

Permalink
chore: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Dec 8, 2023
1 parent b2d704d commit e79d654
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/app/core/code/code.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ export class CodeService {

return `import { DemoDelonABCModule } from './delon-abc.module';
import { DemoDelonChartModule } from './delon-chart.module';
import { DemoNgZorroAntdModule } from './ng-zorro-antd.module';\n${code.replace(
import { DemoNgZorroAntdModule } from './ng-zorro-antd.module';
import { DelonFormModule } from '@delon/form';\n${code.replace(
`@Component({`,
`@Component({\n standalone: true,\n // Just automatically generated code, please import as needed\n imports: [DemoNgZorroAntdModule, DemoDelonABCModule, DemoDelonChartModule],`
`@Component({\n standalone: true,\n // Just automatically generated code, please import as needed\n imports: [DemoNgZorroAntdModule, DemoDelonABCModule, DemoDelonChartModule, DelonFormModule],`
)}`;
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/core/code/files/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { zh_CN as zorroLang } from 'ng-zorro-antd/i18n';
import { zhCN as dateLang } from 'date-fns/locale';
import ngLang from '@angular/common/locales/zh';
import { NzConfig, provideNzConfig } from 'ng-zorro-antd/core/config';
import { provideMockConfig } from '@delon/mock';
import { mockInterceptor, provideMockConfig } from '@delon/mock';
import * as MOCKDATA from '../../_mock';
import { withAutoCompleteWidget } from '@delon/form/widgets/autocomplete';
import { withCascaderWidget } from '@delon/form/widgets/cascader';
Expand Down Expand Up @@ -50,7 +50,7 @@ const ngZorroConfig: NzConfig = {};
export const appConfig: ApplicationConfig = {
providers: [
provideHttpClient(withFetch(), withInterceptors([])),
provideHttpClient(withFetch(), withInterceptors([mockInterceptor])),
provideAnimations(),
provideAlain({ config: alainConfig, defaultLang }),
provideNzConfig(ngZorroConfig),
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { MetaSearchGroupItem } from '../../interfaces';
import { LayoutComponent } from '../layout.component';

const pkg = require('../../../../package.json');
const minimumVersion = 13;
const minimumVersion = +pkg.version.split('.')[0] - 2;

@Component({
selector: 'app-header',
Expand Down

0 comments on commit e79d654

Please sign in to comment.