This commit is contained in:
parent
c9271aebfc
commit
ac8daab212
@ -60,7 +60,6 @@ let globalCounter = 0;
|
|||||||
|
|
||||||
const usedVacations = computed(() => {
|
const usedVacations = computed(() => {
|
||||||
const data = props.myVacations.flatMap((v) => {
|
const data = props.myVacations.flatMap((v) => {
|
||||||
console.log("📌 usedVacations 처리 전 데이터:", v);
|
|
||||||
|
|
||||||
const count = v.used_quota
|
const count = v.used_quota
|
||||||
return Array.from({ length: Math.ceil(count) }, (_, i) => ({
|
return Array.from({ length: Math.ceil(count) }, (_, i) => ({
|
||||||
@ -71,8 +70,6 @@ const usedVacations = computed(() => {
|
|||||||
_expandIndex: globalCounter++,
|
_expandIndex: globalCounter++,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("✅ usedVacations 생성됨:", data);
|
|
||||||
return data;
|
return data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -384,7 +384,6 @@ async function fetchVacationHistory(year) {
|
|||||||
const response = await axios.get(`vacation/history?year=${year}`);
|
const response = await axios.get(`vacation/history?year=${year}`);
|
||||||
if (response.status === 200 && response.data) {
|
if (response.status === 200 && response.data) {
|
||||||
myVacations.value = response.data.data.usedVacations || [];
|
myVacations.value = response.data.data.usedVacations || [];
|
||||||
console.log(myVacations.value)
|
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`🚨 휴가 데이터 불러오기 실패:`, error);
|
console.error(`🚨 휴가 데이터 불러오기 실패:`, error);
|
||||||
@ -478,7 +477,6 @@ function toggleHalfDay(type) {
|
|||||||
/* 페이지 이동 시 변경 사항 확인 */
|
/* 페이지 이동 시 변경 사항 확인 */
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
if (hasChanges.value) {
|
if (hasChanges.value) {
|
||||||
console.log('휴가!!!!!');
|
|
||||||
const answer = window.confirm("저장하지 않은 변경 사항이 있습니다. 이동하시겠습니까?");
|
const answer = window.confirm("저장하지 않은 변경 사항이 있습니다. 이동하시겠습니까?");
|
||||||
if (!answer) {
|
if (!answer) {
|
||||||
return next(false);
|
return next(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user