• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

문제해결과정

[해결완료] 8. vue 새로고침 시 vuex store 초기화 문제 해결

문제 시도1 기존: 프로필 수정 후 저장을 누르는 순간 새로고침을 한다 시도: 새로고침을 하지 않고 props & emit으로 정보를 넘겨줌 문제: 마이페이지 내의 다른 페이지에 들어갔다 나오면 이전의 정보가 보여짐 (새로고침이 아닌 잠시 값만 바꿔줬기 때문) 시도2 저번에 시도하가 실패했던 vuex-persistedstate 사용하기! 설치하기 store/index.js 수정 해당 사진과 ...

문제해결과정문제해결과정

[해결완료] 5. vue store에서 this.$router 사용하기

목적 시도1. 요렇게 store파일에서 this.$router를 사용하면 [Vue warn]: Error in v-on handler: "TypeError: Cannot read properties of undefined (reading '$router')" 요러한 에러를 볼 수 있다. 시도2. 열심히 구글링을 하다가 router.push({name:'Login'}) --> self. rou...

문제해결과정문제해결과정

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more