프론트엔드
-
input date 캘린더 꾸미는법 #date #calendar #캘린더 #input프론트엔드/CSS 2023. 7. 20. 23:53
.m-input-date.type01 input { padding:10px 16px 10px 16px; border-radius:10px; color:rgb(75,86,117); background-color:rgb(249,249,249); border: 1px solid #eee; } .m-input-date.type01 input[type="date"]::-webkit-calendar-picker-indicator, .m-input-date.type01 input[type="date"]::-webkit-inner-spin-button, .m-input-date.type01 input[type="date"]::-webkit-clear-button { color: rgba(0, 0, 0, 0); opac..
-
axios에 전역에러처리하기 #global #error #catch #error프론트엔드/Nuxt 2023. 4. 6. 18:52
# What? - axios 후 에러있을때마다 공통으로 해주는 작업이 있을 때 전역처리하는법 # How? npm install @nuxtjs/axios @ plugins/axios.js export default function ({ $axios, redirect, store }) { $axios.onError(error => { if(error.response.status == 401) return null; // store.commit('setPop', error.message); if(error.response.status == 422) return alert("입력값을 확인해주세요."); if(error.response.data && error.response.data.message) return..