목록전체 글 (185)
Mi Lugarcito

Store Flow 공부 //$user.isLogin 이 역할이 뭔지?? //state 이 역할이 뭔지??? $user 풀어보면 아래와 같음 { "email": "qkrdmstlf292@naver.com", "name": "네이버 박은실", "login_type": 0, "isLogin": true } ====>store->user안에 있는 state 를 뜻함 export const state = () => ({ email: "", name: "", login_type: 0, isLogin: false }); //commit & mutations this.$store.commit("auth/SET_TOKEN", res.data.data.token); export const mutations = { INI..
Vue & Nuxt.js
2022. 2. 11. 11:43

productUploadImg & productUpload api 2개를 호출함 api -> router 확인하기 productUpload 라는 multer를 먼저 탄다->postProduct & postProductImg 멀터 다같이 핸들링함 productStorage에서 검사 먼저 하고 이후 postProduct / postProductImg (editor 관련) 라는 api를 백단에서 타고 프론트에서 postProduct api 호출한 것에 있어서 예외처리 해준다 & postProductImg는 이미 에디터에서 사진 업로드 완료 전에 멀터에서 용량 먼저 체크후 업로드 제한해줌 참고할 파일들
Vue & Nuxt.js
2022. 2. 10. 17:13