Skip to content

Commit

Permalink
feat(projects): adaptation react-soybean-admin framework
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Jul 26, 2024
1 parent c90803a commit 689327d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/route-core/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ export function createPrefixCommentOfGenFile(disabledFormat = true) {
/* prettier-ignore */
`;
let comment = `// Generated by elegant-router
// Read more: https://github.com/soybeanjs/elegant-router`;
// Read more: https://github.com/mufeng889/elegant-router
// Vue auto route: https://github.com/soybeanjs/elegant-router
`;

if (disabledFormat) {
comment = prefix + comment;
Expand Down
2 changes: 1 addition & 1 deletion src/route-core/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getTransformCode(options: ElegantReactRouterOption, entries: ElegantRou
import type { LazyRouteFunction, RouteObject,IndexRouteObject } from "react-router-dom";
import type { FunctionComponent } from "react";
import type { ElegantConstRoute } from '@elegant-router/react';
import type { ElegantConstRoute } from @ohh-889/react-auto-route';
import type { RouteMap, RouteKey, RoutePath } from '@elegant-router/types';
import { redirect } from 'react-router-dom'
import ErrorBoundary from '@/pages/_builtin/error'
Expand Down

0 comments on commit 689327d

Please sign in to comment.