Skip to content

Commit

Permalink
perf: 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Dec 8, 2024
1 parent 8c01912 commit da6c957
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import("@commitlint/types").UserConfig} */
export default {
extends: ['@commitlint/config-conventional'], // 继承 @commitlint/config-conventional 配置,即使用常规的 Commit 规范。
extends: ['@commitlint/config-conventional'], // 继承使用常规的 Commit 规范。
rules: {
'type-enum': [
2,
Expand Down
2 changes: 1 addition & 1 deletion src/error-boundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useRouteError } from 'react-router';

const ErrorBoundary: FC = () => {
const routeError = useRouteError() as any;

console.error(routeError);
// 可以在这里根据不同的业务逻辑处理错误或者上报给日志服务
return (
<div
Expand Down

0 comments on commit da6c957

Please sign in to comment.