瀏覽代碼

feat:修改保存的日期

AmandaG 8 月之前
父節點
當前提交
8afcc780c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/Dashboard/src/components/RevenueChart.vue

+ 1 - 1
src/views/Dashboard/src/components/RevenueChart.vue

@@ -293,7 +293,7 @@ const initOption = reactive({
         title: 'update',
         icon: 'image://' + updateIcon,
         onclick: function () {
-          let filename = 'Revenue Spent Details ' + barName.value[0] + '-' + barName.value[1]
+          let filename = 'Revenue Spent Details ' + barName.value[0] + '-' + barName.value[barName.value.length - 1]
           exportData({ filename: filename })
         }
       }