visuddhinanda 3 lat temu
rodzic
commit
7ed82015a4
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      dashboard/src/pages/library/anthology/show.tsx

+ 2 - 3
dashboard/src/pages/library/anthology/show.tsx

@@ -8,7 +8,6 @@ const { Content, Header } = Layout;
 const Widget = () => {
 const Widget = () => {
   // TODO
   // TODO
   const { id, tags } = useParams(); //url 参数
   const { id, tags } = useParams(); //url 参数
-  let aid = id ? id : "";
   let channel = tags ? tags : "";
   let channel = tags ? tags : "";
 
 
   const pageMaxWidth = "1260px";
   const pageMaxWidth = "1260px";
@@ -19,7 +18,7 @@ const Widget = () => {
           <Col flex="auto"></Col>
           <Col flex="auto"></Col>
           <Col flex={pageMaxWidth}>
           <Col flex={pageMaxWidth}>
             <div>
             <div>
-              {aid}@{channel}
+              {id}@{channel}
             </div>
             </div>
           </Col>
           </Col>
           <Col flex="auto"></Col>
           <Col flex="auto"></Col>
@@ -32,7 +31,7 @@ const Widget = () => {
           <Col flex={pageMaxWidth}>
           <Col flex={pageMaxWidth}>
             <Row>
             <Row>
               <Col span="18">
               <Col span="18">
-                <AnthologyDetail aid={aid} />
+                <AnthologyDetail aid={id} />
               </Col>
               </Col>
               <Col span="6"></Col>
               <Col span="6"></Col>
             </Row>
             </Row>