|
|
@@ -1,22 +1,9 @@
|
|
|
-import { Space } from "antd";
|
|
|
import { useParams } from "react-router-dom";
|
|
|
-
|
|
|
-import HeadBar from "../../../components/library/HeadBar";
|
|
|
-import FooterBar from "../../../components/library/FooterBar";
|
|
|
+import TermShow from "../../../components/term/TermShow";
|
|
|
|
|
|
const Widget = () => {
|
|
|
- // TODO
|
|
|
- const { word } = useParams(); //url 参数
|
|
|
- return (
|
|
|
- <div>
|
|
|
- <HeadBar />
|
|
|
- <div>术语百科 单词-{word}</div>
|
|
|
- <div>
|
|
|
- <Space>主显示区</Space>
|
|
|
- </div>
|
|
|
- <FooterBar />
|
|
|
- </div>
|
|
|
- );
|
|
|
+ const { id } = useParams(); //url 参数
|
|
|
+ return <TermShow wordId={id} />;
|
|
|
};
|
|
|
|
|
|
export default Widget;
|