-
카테고리
-
세부 분야
프론트엔드
-
해결 여부
미해결
메인 게시글 불러오기가 잘안되여
20.01.25 22:27 작성 조회수 109
0
안녕하세여
https://github.com/hyunsokstar/vue-nodebird-hyun
ch2로 다시 했는데 이번에도 loadPosts에서 막혀서여
머가 잘못된건지 알려주시면 감사여 ㅋㅋ;
즐거운 설 주말 되세여~!
답변을 작성해보세요.
0
terecal
질문자2020.01.26
store의 actions 의 loadPosts 의 than 이후가 실행이 안되여
에러는 없고 res를 출력하고 싶은데 잘안되서여
loadPosts({ commit, state }, payload) {
console.log("loadPosts 실행 확인 11");
if (state.hasMorePost) {
console.log("loadPosts 실행 확인 22");
this.$axios.get(`http://localhost:3085/posts?offset=${state.mainPosts.length}$limit=10`)
.then((res) => {
console.log("res : ", res);
commit('loadPosts', res.data);
})
.catch(() => {
});
}
},
네트워크 탭은
0
답변 2