Browse Source

fix: api data field name error

jiangmaniu 1 year ago
parent
commit
2c0759184b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pages/archives/index.js

+ 1 - 1
src/pages/archives/index.js

@@ -36,7 +36,7 @@ const ArchivesList = (props) => {
                                 <li className='tl-header'>
                                 <li className='tl-header'>
                                     <h2 className='title'>{setYears(item.archiveDate)}</h2>
                                     <h2 className='title'>{setYears(item.archiveDate)}</h2>
                                 </li>
                                 </li>
-                                {item.archivePosts.map((item2, index2) => {
+                                {item.archivePostList.map((item2, index2) => {
                                     return (
                                     return (
                                         <div className='tl-body' key={index2}>
                                         <div className='tl-body' key={index2}>
                                             <li className='tl-item'>
                                             <li className='tl-item'>