diff --git a/deploy.sh b/deploy.sh index 4299bcf..6664cd8 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,6 @@ ssh root@213.226.71.138 " - cd /root/luminic/space/app && + cd /root/luminic/front/app && git pull && npm run build && cp -r dist/* /var/www/app.luminic.space/ diff --git a/src/components/dashboard/DashboardView.vue b/src/components/dashboard/DashboardView.vue index f5e78b5..3390ce3 100644 --- a/src/components/dashboard/DashboardView.vue +++ b/src/components/dashboard/DashboardView.vue @@ -35,6 +35,13 @@ const plannedTransactions = ref([]); const currentBaseDate = ref(dayjs()); const displayMonth = computed(() => { + const currentDay = currentBaseDate.value.date(); + + // Если текущая дата от 1 до 9, период начинается с 10-го числа предыдущего месяца + if (currentDay >= 1 && currentDay <= 9) { + return currentBaseDate.value.subtract(1, 'month').format('MMMM YYYY'); + } + return currentBaseDate.value.format('MMMM YYYY'); });