diff --git a/frontend/.env b/frontend/.env index edcf512..cbc4b2d 100644 --- a/frontend/.env +++ b/frontend/.env @@ -1,11 +1,11 @@ VITE_APP_PORT=5173 VITE_SOURCE_MAP=true # mock -#ITE_ENABLE_MOCK=true -#VITE_BASE_URL=http://localhost:5173 +VITE_ENABLE_MOCK=true +VITE_BASE_URL=http://localhost:5173 # local -VITE_ENABLE_MOCK=false -VITE_BASE_URL=http://localhost:8080 +#VITE_ENABLE_MOCK=false +#VITE_BASE_URL=http://localhost:8080 # dev #VITE_ENABLE_MOCK=false #VITE_BASE_URL=https://localhost/api diff --git a/frontend/src/api/mocks/departmentHandlers.ts b/frontend/src/api/mocks/departmentHandlers.ts index 674f99a..1fd7e48 100644 --- a/frontend/src/api/mocks/departmentHandlers.ts +++ b/frontend/src/api/mocks/departmentHandlers.ts @@ -16,7 +16,7 @@ export default [ }; return HttpResponse.json(mockData); }), - http.get("/department/query", () => { + http.get("/department/query-available", () => { const generateDepartment = () => ({ id: faker.number.int({ min: 1, max: 30 }), name: faker.company.name(), diff --git a/frontend/src/components/Breadcrumbs.vue b/frontend/src/components/Breadcrumbs.vue index 7cb9c5e..532eb65 100644 --- a/frontend/src/components/Breadcrumbs.vue +++ b/frontend/src/components/Breadcrumbs.vue @@ -3,7 +3,7 @@
  1. + class="inline-flex items-center text-gray-700 hover:text-primary-600 "> @@ -19,7 +19,7 @@ d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd"> - {{ + {{ name }}
  2. diff --git a/frontend/src/components/DepartmentUpsertModal.vue b/frontend/src/components/DepartmentUpsertModal.vue index 0af8188..ab937e2 100644 --- a/frontend/src/components/DepartmentUpsertModal.vue +++ b/frontend/src/components/DepartmentUpsertModal.vue @@ -2,18 +2,17 @@