분류 전체보기
-
401 에러 시 로그아웃시키는법프론트엔드/Nuxt 2023. 10. 6. 12:41
import $ from 'jquery'; export default function ({ $axios, redirect, store, app }) { $axios.onError(error => { // store.commit("setFlash", error.message); if(error.response.status == 401) { app.$auth.logout(); return store.commit("setPop", { title: "로그인 필요", description: "로그인 후 이용해주세요." }); } }) } - 근데 이러면 logout 자체가 auth 필요한 요청이라 무한반복 될 수 있음 백엔드쪽에서 logout를 게스트도 할 수 있게 변경하고 auth()->user()가 있을때만 ..
-
기본세팅법Spring 2023. 10. 3. 01:32
기본파일 설치 - Java JDK 18 설치 (스크롤 좀 내려서 Windows x64 설치) https://www.oracle.com/java/technologies/javase/jdk18-archive-downloads.html Java Archive Downloads - Java SE 18 WARNING: These older versions of the JDK are provided to help developers debug issues in older systems. They are not updated with the latest security patches and are not recommended for use in production. For production use Oracle re..
-
middleware에서 페이지 이동 막는법 #nuxt #middleware #미들웨어 #vue프론트엔드/Nuxt 2023. 8. 22. 08:08
@ middleware/user.js next(false)로 하면 페이지 이동 안함 export default function ({store,route, redirect, next}) { if(!store.state.auth.user) { store.commit("setModals", ["login"]); store.commit("setIntendedUrl", route.fullPath); next(false); } }
-
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..