diff --git a/README.md b/README.md index 6a3efd2..e1ad0fa 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,9 @@
-## 📌 프로토타입 + +## 📌 화면 구성 +
diff --git a/frontend/carbook/index.html b/frontend/carbook/index.html index b12f2d7..8a75983 100644 --- a/frontend/carbook/index.html +++ b/frontend/carbook/index.html @@ -1,7 +1,7 @@ - + diff --git a/frontend/carbook/src/components/Home/PostList.ts b/frontend/carbook/src/components/Home/PostList.ts index 21c7f2b..c89d086 100644 --- a/frontend/carbook/src/components/Home/PostList.ts +++ b/frontend/carbook/src/components/Home/PostList.ts @@ -5,8 +5,7 @@ import { tagStore } from '@/store/tagStore'; import { getClosest, qs } from '@/utils'; import isLogin from '@/utils/isLogin'; import { push } from '@/utils/router/navigate'; -import { getInitPostList, getPostKey, getSearchUrl } from './helper'; - +import { getInitPostList, getSearchUrl } from './helper'; export default class PostList extends Component { observer: any; @@ -70,20 +69,20 @@ export default class PostList extends Component { async fetchImages() { const { index, isLike } = this.state; - const key = getPostKey(index, isLike); - const prevImage = - JSON.parse(localStorage.getItem('postList') as string) || {}; + // const key = getPostKey(index, isLike); + // const prevImage = + // JSON.parse(localStorage.getItem('postList') as string) || {}; this.setState({ isLoading: true, isInit: false }); const url = getSearchUrl(index, isLike); try { - const res = prevImage[key] || (await basicAPI.get(url)); + const res = await basicAPI.get(url); const { images, login, nickname } = res.data; - const newKey = getPostKey(this.state.index, isLike); - prevImage[newKey] = res; - localStorage.setItem('postList', JSON.stringify(prevImage)); + // const newKey = getPostKey(this.state.index, isLike); + // prevImage[newKey] = res; + // localStorage.setItem('postList', JSON.stringify(prevImage)); const lastImage = images[images.length - 1];