Skip to content

Commit 0ae531d

Browse files
author
bestGao
committed
feat(l): 修复报错
1 parent 153d956 commit 0ae531d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/articleCom/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useEffect } from "react";
21
import { post } from "@/utils/request";
32
import { Typography } from "antd";
43
import style from "./articleCom.module.less";
@@ -16,6 +15,7 @@ export default function ArticleCom({ item }: IProps) {
1615

1716
const handleClick = async () => {
1817
const res: any = await post("/user/postDetail", { download_url });
18+
console.log("res", res);
1919
};
2020
return (
2121
<div className={style.item} onClick={handleClick}>

src/pages/be/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { List, Typography } from "antd";
33
import style from "./index.module.less";
44
import { post } from "@/utils/request";
55
import useCustomReducer from "@/hooks/useCusReducer";
6-
import { Link, useNavigate } from "react-router-dom";
6+
import { useNavigate } from "react-router-dom";
77
export default function BFE() {
88
const nav = useNavigate();
99
const [state, dispatch] = useCustomReducer({

0 commit comments

Comments
 (0)