li.shaoyi 1 年之前
父節點
當前提交
9a7b0976ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/mobile/views/report/components/index.vue

+ 1 - 1
src/packages/mobile/views/report/components/index.vue

@@ -108,7 +108,7 @@ const handleAmount = (value?: number) => {
 // 查询市场上个交易日
 const getMarketRun = queryMarketRun().then((res) => {
     marketInfo.value = res.data.find((e) => e.marketid === 0)
-    const dateString = marketInfo.value?.pretradedate ?? new Date().toISOString()
+    const dateString = marketInfo.value?.pretradedate || new Date().toISOString()
     currentDate.value = moment(dateString).format(pickerFormat.value).split('-')
 })