From aed1321d886f16990c98d0b0577056142bf697de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=B5=E1=84=8C=E1=85=B5=E1=86=AB=E1=84=80?= =?UTF-8?q?=E1=85=B5?= <> Date: Tue, 19 Nov 2024 15:51:49 +0900 Subject: [PATCH] =?UTF-8?q?Vue=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20admin=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nuxt/components/DateSearch.vue | 37 ------------------------ nuxt/{ => components}/common/loading.vue | 0 nuxt/components/layout/header.vue | 2 +- nuxt/constants/login/index.ts | 6 ++-- nuxt/pages/{ => admin}/login/index.vue | 0 nuxt/stores/login/index.ts | 2 +- 6 files changed, 5 insertions(+), 42 deletions(-) delete mode 100644 nuxt/components/DateSearch.vue rename nuxt/{ => components}/common/loading.vue (100%) rename nuxt/pages/{ => admin}/login/index.vue (100%) diff --git a/nuxt/components/DateSearch.vue b/nuxt/components/DateSearch.vue deleted file mode 100644 index 6c7dd5e..0000000 --- a/nuxt/components/DateSearch.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - diff --git a/nuxt/common/loading.vue b/nuxt/components/common/loading.vue similarity index 100% rename from nuxt/common/loading.vue rename to nuxt/components/common/loading.vue diff --git a/nuxt/components/layout/header.vue b/nuxt/components/layout/header.vue index f2ac840..946b78d 100644 --- a/nuxt/components/layout/header.vue +++ b/nuxt/components/layout/header.vue @@ -10,7 +10,7 @@ import { LogoutOutlined } from '@ant-design/icons-vue'; - + 로그아웃 diff --git a/nuxt/constants/login/index.ts b/nuxt/constants/login/index.ts index 499e884..caa44af 100644 --- a/nuxt/constants/login/index.ts +++ b/nuxt/constants/login/index.ts @@ -1,12 +1,12 @@ -import type { LoginReqType, LoginResType } from '~/types/login'; +import type { LoginRequestType, LoginResponseType } from '~/types/login'; -export const DEFAULT_AUTHENTICATION_VALUE: LoginReqType = { +export const DEFAULT_AUTHENTICATION_VALUE: LoginRequestType = { memberId: '', password: '', remember: false }; -export const DEFAULT_AUTHORIZATION_VALUE: LoginResType = { +export const DEFAULT_AUTHORIZATION_VALUE: LoginResponseType = { memberName: '', deptNm: '', instNm: '', diff --git a/nuxt/pages/login/index.vue b/nuxt/pages/admin/login/index.vue similarity index 100% rename from nuxt/pages/login/index.vue rename to nuxt/pages/admin/login/index.vue diff --git a/nuxt/stores/login/index.ts b/nuxt/stores/login/index.ts index 180d45b..aa57ea3 100644 --- a/nuxt/stores/login/index.ts +++ b/nuxt/stores/login/index.ts @@ -16,7 +16,7 @@ export const useAuthStore = defineStore('authStore', () => { ); const LoginAPI = async () => { - return await useAxios().post(`/api/login`, loginRequest.value); + return await useAxios().post(`/api/admin/login`, loginRequest.value); }; return {