반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- storybook
- ES6
- react
- 자료구조
- mapGetters
- 자바스크립트
- CSS
- JavaScript
- scss
- input
- TypeScript
- HOC
- jsx
- 리액트
- 댓글달기
- App.vue
- MySQL
- Wecode
- vuex
- Vue.js
- sass
- Vue
- nodejs
- v-html
- webpack
- Vue transition
- State
- 쉬운설명
- event
- express
Archives
- Today
- Total
목록vuex-module-mutation (1)
익명의 개발노트

Vuex 구조 index.ts ├─ ModuleCreateTheme.store.ts ├─ ModuleEditTheme.store.ts └─ ModuleUserInfo.store.ts 각 모듈별 똑같이 getters 를 아래와 같이 작성했다. getters: { getAllState: state => state, } getters를 사용하고자 하는 컴포넌트에서 불러온다. this.$store.getters['moduleUserInfo/getAllState'] // this.$store.getters[네임스페이스, 함수명] 기존에는 getters를 사용할때 computed에 ...mapGetters를 선언하고 사용했는데, 바로 사용이 가능하다. 추가적으로 모듈화된 내용에 action이나 mutation을 하..
코딩일기/TIL
2020. 3. 19. 13:06