Skip to content

Commit 2aa4173

Browse files
committed
fix: del default element
1 parent be3873c commit 2aa4173

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/router/config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export function getRoute(routers: Route[] | Route) {
200200
return list.map((e) => {
201201
const { key = nanoid(), path, title, index, redirect, component: componentPath, childrenList = [] } = e;
202202

203-
let element: ReactNode = <></>;
203+
let element: ReactNode;
204204

205205
if (componentPath) {
206206
const Component = getLazyLoad(componentPath);

src/utils/request.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ export class Request {
1919
}
2020

2121
// 代理标识
22-
if (process.env.NODE_ENV === "development") {
23-
config.url = `/proxy${config.url}`;
24-
}
22+
// if (process.env.NODE_ENV === "development") {
23+
// config.url = `/proxy${config.url}`;
24+
// }
2525

2626
return config;
2727
});

0 commit comments

Comments
 (0)