li.shaoyi před 1 rokem
rodič
revize
7460d055e4

+ 1 - 1
src/packages/pc/components/layouts/header/components/report/index.vue

@@ -131,7 +131,7 @@ const onChange = () => {
 // 查询市场上个交易日
 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()
     cycletime.value = formatDate(dateString, 'YYYYMMDD')
 })