فهرست منبع

修改裂变分析日期展示情况

ylong 7 ماه پیش
والد
کامیت
242b94757d
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      src/views/marketing/ipMrakup/fission/index.vue

+ 4 - 0
src/views/marketing/ipMrakup/fission/index.vue

@@ -254,6 +254,10 @@
 
     const displayDateRange = computed(() => {
         if (Array.isArray(dateRange.value) && dateRange.value.length === 2) {
+            // If start and end dates are the same, only show one date
+            if (dateRange.value[0] === dateRange.value[1]) {
+                return dateRange.value[0];
+            }
             return `${dateRange.value[0]} - ${dateRange.value[1]}`;
         } else {
             return currentDate.value;