diff --git a/src/utils/tools.ts b/src/utils/tools.ts index 685313d..077434a 100644 --- a/src/utils/tools.ts +++ b/src/utils/tools.ts @@ -32,7 +32,7 @@ export const url = { /** route路由相关工具 */ export const route = { - FILE_NAME_PREFIX: '/src/views/', + FILE_NAME_PREFIX: '/src/views', convertPathToName: (path: string): string => { return path .split('/') // 分割路径