diff --git a/public/css/custom.css b/public/css/custom.css index efb780b..e57b64f 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -617,6 +617,10 @@ .layout-page { margin-right: 0 !important; } + + #app-calendar-sidebar { + width: 100%; + } } /* 세로모드 모바일 디바이스 (가로 해상도가 576px 보다 작은 화면에 적용) */ diff --git a/src/common/axios-interceptor.js b/src/common/axios-interceptor.js index 1cd85ef..d04b225 100644 --- a/src/common/axios-interceptor.js +++ b/src/common/axios-interceptor.js @@ -41,22 +41,18 @@ $api.interceptors.response.use( const loadingStore = useLoadingStore(); loadingStore.stopLoading(); + // 테스트 부탁 // 로그인 실패, 커스텀 에러 응답 처리 (status는 200 success가 false인 경우) - if (response.data && response.data.success === false) { + if (response.data.code > 10000) { const toastStore = useToastStore(); const errorCode = response.data.code; const errorMessage = response.data.message || '알 수 없는 오류가 발생했습니다.'; - // 로그인 요청일 경우 (헤더에 isLogin이 true로 설정된 경우) - if (response.config.headers && response.config.headers.isLogin) { - return response; - } - // 서버에서 보낸 메시지 사용 toastStore.onToast(errorMessage, 'e'); // 특정 에러 코드에 대한 추가 처리만 수행 - if (errorCode === 'USER_NOT_FOUND') { + if (errorCode === 10001) { router.push('/login'); } diff --git a/src/components/commuters/CommuterCalendar.vue b/src/components/commuters/CommuterCalendar.vue index c350655..de30591 100644 --- a/src/components/commuters/CommuterCalendar.vue +++ b/src/components/commuters/CommuterCalendar.vue @@ -2,7 +2,7 @@
diff --git a/src/components/input/UserFormInput.vue b/src/components/input/UserFormInput.vue index 7ffbf7d..f5517e8 100644 --- a/src/components/input/UserFormInput.vue +++ b/src/components/input/UserFormInput.vue @@ -14,6 +14,7 @@ :value="computedValue" :disabled="disabled" :maxLength="maxlength" + :minLength="minlength" :placeholder="title" @blur="$emit('blur')" /> @@ -29,6 +30,7 @@ :value="computedValue" :disabled="disabled" :maxLength="maxlength" + :minLength="minlength" :placeholder="title" @blur="$emit('blur')" /> @@ -77,6 +79,11 @@ default: 30, required: false, }, + minlength: { + type: Number, + default: 4, + required: false, + }, isAlert: { type: Boolean, default: false, diff --git a/src/layouts/TheMenu.vue b/src/layouts/TheMenu.vue index 9aeb775..cb8e8fb 100644 --- a/src/layouts/TheMenu.vue +++ b/src/layouts/TheMenu.vue @@ -96,7 +96,7 @@ import { computed } from "vue"; import { useUserInfoStore } from '@s/useUserInfoStore'; const userStore = useUserInfoStore(); -const allowedUserId = 26; // 특정 ID (변경필요!!) +const allowedUserId = 1; // 특정 ID (변경필요!!) const userId = computed(() => userStore.user?.id ?? null); diff --git a/src/router/index.js b/src/router/index.js index 4461e85..9ec3040 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -111,7 +111,7 @@ const router = createRouter({ router.beforeEach(async (to, from, next) => { const authStore = useAuthStore(); await authStore.checkAuthStatus(); // 로그인 상태 확인 - const allowedUserId = 26; // 특정 ID (변경필요!!) + const allowedUserId = 1; // 특정 ID (변경필요!!) const userStore = useUserInfoStore(); const userId = userStore.user?.id ?? null; @@ -120,7 +120,7 @@ router.beforeEach(async (to, from, next) => { return next({ name: 'Login', query: { redirect: to.fullPath } }); } - // Authorization 페이지는 ID가 26이 아니면 접근 차단 + // Authorization 페이지는 ID가 1이 아니면 접근 차단 if (to.path === "/authorization" && userId !== allowedUserId) { return next("/"); } diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 9b37c8a..db2ff6b 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -6,18 +6,19 @@