|
|
@@ -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')
|
|
|
})
|
|
|
|