li.shaoyi il y a 1 an
Parent
commit
9a7b0976ef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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('-')
 })