diff --git a/.env.dev b/.env.dev index 5702020..eb6bd0f 100644 --- a/.env.dev +++ b/.env.dev @@ -1,6 +1,6 @@ VITE_DOMAIN = https://192.168.0.251:5173/ # VITE_LOGIN_URL = http://localhost:10325/ms/ -# VITE_FILE_URL = http://localhost:10325/ms/ +VITE_SERVER = httpS://192.168.0.251:10325/ VITE_API_URL = https://192.168.0.251:10325/api/ VITE_TEST_URL = https://192.168.0.251:10325/test/ VITE_KAKAO_MAP_KEY=6f092e8f45ee81186bb6d8408f66a492 \ No newline at end of file diff --git a/.env.mine b/.env.mine index 6f5a98c..07aa984 100644 --- a/.env.mine +++ b/.env.mine @@ -1,6 +1,6 @@ VITE_DOMAIN = http://localhost:5173/ # VITE_LOGIN_URL = http://localhost:10325/ms/ -# VITE_FILE_URL = http://localhost:10325/ms/ +VITE_SERVER = http://localhost:10325/ VITE_API_URL = http://localhost:10325/api/ VITE_TEST_URL = http://localhost:10325/test/ VITE_KAKAO_MAP_KEY=6f092e8f45ee81186bb6d8408f66a492 \ No newline at end of file diff --git a/public/js/main.js b/public/js/main.js index c118e86..047566f 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -7,12 +7,6 @@ //----------------- let menu, animate; -<<<<<<< HEAD -var menu, animate; -(function () { - // Initialize menu - //----------------- -======= let layoutMenuEl = document.querySelectorAll('#layout-menu'); layoutMenuEl.forEach(function (element) { menu = new Menu(element, { @@ -23,7 +17,6 @@ var menu, animate; window.Helpers.scrollToActive((animate = false)); window.Helpers.mainMenu = menu; }); ->>>>>>> board-comment // Initialize menu togglers and bind click on each let menuToggler = document.querySelectorAll('.layout-menu-toggle'); diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index e81e4fb..272c0f4 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -310,6 +310,18 @@ const closeEditModal = () => { isEditModalOpen.value = false; }; +// 변경된 내용 있는지 확인 +const hasChanges = computed(() => { + return selectedProject.value.PROJCTNAM !== props.title || + selectedProject.value.PROJCTSTR !== props.strdate || + selectedProject.value.PROJCTEND !== props.enddate || + selectedProject.value.PROJCTZIP !== props.addressZip || + selectedProject.value.PROJCTARR !== props.address || + selectedProject.value.PROJCTDTL !== props.addressdtail || + selectedProject.value.PROJCTDES !== props.description || + selectedProject.value.PROJCTCOL !== props.projctCol; +}); + // 프로젝트 수정 const handleUpdate = () => { nameAlert.value = selectedProject.value.PROJCTNAM.trim() === ''; @@ -318,6 +330,11 @@ const handleUpdate = () => { return; } + if (!hasChanges.value) { + toastStore.onToast('변경된 내용이 없습니다.', 'e'); + return; + } + $api.patch('project/update', { projctSeq: selectedProject.value.PROJCTSEQ, projctNam: selectedProject.value.PROJCTNAM, @@ -336,7 +353,6 @@ const handleUpdate = () => { closeEditModal(); // 상위 컴포넌트에 업데이트 알림 emit('update'); - window.location.reload() } }); }; diff --git a/src/components/user/UserList.vue b/src/components/user/UserList.vue index 27f81e6..f921ce3 100644 --- a/src/components/user/UserList.vue +++ b/src/components/user/UserList.vue @@ -1,7 +1,7 @@