diff --git a/packages/vue/src/core/imports.ts b/packages/vue/src/core/imports.ts index 9c0a04b..b5a0735 100644 --- a/packages/vue/src/core/imports.ts +++ b/packages/vue/src/core/imports.ts @@ -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'; @@ -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]) => { diff --git a/packages/vue/src/core/options.ts b/packages/vue/src/core/options.ts index aaf4c78..ced186b 100644 --- a/packages/vue/src/core/options.ts +++ b/packages/vue/src/core/options.ts @@ -35,8 +35,6 @@ export function createPluginOptions(erOptions: ElegantRouterOption, options?: Pa onRouteMetaGen: name => ({ title: name }), - routeConstFormatCommand: `eslint --fix ${CONST_DIR}`, - routeConstOverrideUpdateProps: [], ...erOptions, ...options };