Skip to content

Commit

Permalink
fix(projects): fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 4, 2023
1 parent dd3fc2b commit 4ee2970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/vue/src/core/imports.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'node:path';
import { writeFile } from 'node:fs/promises';
import type { ElegantRouterFile } from '@elegant-router/core';
import type { ElegantVueRouterOption, LayoutFile } from '../types';
import type { ElegantVueRouterOption } from '../types';
import { ensureFile } from '../shared/fs';
import { createPrefixCommentOfGenFile } from './comment';

Expand Down Expand Up @@ -94,7 +94,10 @@ export function getLayoutFile(options: ElegantVueRouterOption) {

const layoutKeys = Object.keys(layouts);

const files: LayoutFile[] = layoutKeys.map(key => {
const files: {
layoutName: string;
importPath: string;
}[] = layoutKeys.map(key => {
let importPath = layouts[key];

Object.entries(alias).some(([a, dir]) => {
Expand Down
2 changes: 0 additions & 2 deletions packages/vue/src/core/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export function createPluginOptions(erOptions: ElegantRouterOption, options?: Pa
onRouteMetaGen: name => ({
title: name
}),
routeConstFormatCommand: `eslint --fix ${CONST_DIR}`,
routeConstOverrideUpdateProps: [],
...erOptions,
...options
};
Expand Down

0 comments on commit 4ee2970

Please sign in to comment.